0
試圖設置虛擬主機,並確定我做錯了什麼。如果我運行apachectl,我得到這個警告。Mountain Lion apache vhost
$ sudo apachectl -t
httpd: Could not reliably determine the server's fully qualified domain name, using Johns-MacBook-Pro.local for ServerName
[Tue Apr 16 21:34:01 2013] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
Syntax OK
所以發生了什麼是一切都恢復到頂級的虛擬主機。這是我的虛擬主機文件
<VirtualHost *:80>
DocumentRoot "/Users/jcostanzo/development/impress"
ServerName impress.local
ServerAlias impress.local
ErrorLog "/private/var/log/apache2/impress.local-error_log"
<Directory "/Users/jcostanzo/development/impress" >
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/Users/jcostanzo/development/testsomething"
ServerName testing.local
ServerAlias testing.local
ErrorLog "/private/var/log/apache2/test.local-error_log"
<Directory "/Users/jcostanzo/development/testsomething" >
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>