0
我已经在Mountain Lion中安装了XAMPP,并且正试图将mysite.local别名替换为localhost /〜user/mysite。本地主机别名无法在XAMPP上工作
在/etc/apache2/extra/httpd-vhosts.conf我:
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/Users/user/Sites/mysite"
ServerName mysite.local
ErrorLog "/private/var/log/apache2/dummy-host2.example.com-error_log"
CustomLog "/private/var/log/apache2/dummy-host2.example.com-access_log" common
</VirtualHost>
,并在/ etc/hosts中我有:
127.0.0.1 localhost mysite.local
当我去http://mysite.local它只显示我的XAMPP开始页面。
怎么办?
没有喜悦。我取消了“Include/private/etc/apache2/extra/httpd-vhosts.conf”的注释并尝试了'Include/etc/apache2/extra/httpd-vhosts.conf',但我仍然在获取XAMPP启动页面。 – 2013-04-11 06:22:23
听起来像是你可能正在编辑错误的httpd.conf文件,XAMPP使用它自己的东西,通常在/ Applications/XAMPP/etc /(从内存中找到) – Toby 2013-04-11 08:25:24
Sorted,谢谢Toby。 – 2013-04-11 12:39:39