0

仮想ホストをセットアップしようとしていますが、何が間違っているのかわかりません。apachectl を実行すると、この警告が表示されます。

$ 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

何が起こっているのかというと、すべてが最上位の vhost に戻っています。これが私のvhostファイルです

<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>
4

1 に答える 1