Apache虚拟主机 – Mac OSX 10.7.3

升级到Lion后,我的所有虚拟主机都停止工作。 他们redirect到“It works”主要的apache页面在我的设备上有一些奇怪的原因。

例:

/ etc / hosts: 127.0.0.1 myhost.com

 <VirtualHost *:80> DocumentRoot "/Library/WebServer/Documents/testproj/" ServerName myhost.com <Directory "/Library/WebServer/Documents/testproj/"> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all </Directory> ErrorLog "/private/var/log/apache2/testproj-error_log" CustomLog "/private/var/log/apache2/testproj-access_log" common </VirtualHost> 

还有其他人面临同样的问题吗? 我怎样才能解决这个问题?

好像两个Apache一起工作。 homebew之一和macport之一…删除macport apache修复了这个问题…似乎我修改的Apacheconfiguration不是一个工作在端口80