我正在尝试运行一个服务器流浪汉。我已安装并运行标准 lucid32 盒,其中安装了 dnsmasq。我希望能够使用类似 anything.dev 的 URL 从我的主机浏览到服务器。我的 dnsmasq 配置中有以下选项:
address=/dev/127.0.0.1
我的 Apache VirtualHost:
NameVirtualHost anything.dev:80
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
ServerName anything.dev:80
ServerAlias *.anything.dev
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
我的主机上的网络偏好设置指向 33.33.33.10(vagrant box 的默认 IP 地址)。我可以在静态 IP 地址上查看默认站点,但 anything.dev 什么都没有。有什么想法吗?谢谢