我试图在stream浪汉上运行一个服务器。 我已经安装了标准的lucid32盒子并运行了dnsmasq。 我想能够从我的主机浏览到服务器与一个url像anything.dev我有以下选项在我的dnsmasqconfiguration:
address=/dev/127.0.0.1
和我的Apache虚拟主机:
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框的默认IP地址),我的networking首选项。 我可以在静态IP地址查看默认站点,但是anything.dev没有给我提供任何信息。 有任何想法吗? 谢谢