Apache Virtual Host显示其工作但未加载正确的索引

时间:2013-02-20 02:43:31

标签: apache osx-mountain-lion virtualhost

我正在使用此配置,而我的.dev工作正常,但it works显示index.php而非index.php中是否有默认<Virtualhost *:80> VirtualDocumentRoot "/Users/Jess/Sites/dev/%1/" ServerName vhosts.dev ServerAlias *.dev UseCanonicalName Off LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon ErrorLog "/Users/Jess/Sites/dev/vhosts-error_log" <Directory "/Users/Jess/Sites/dev/*"> Options -Indexes FollowSymLinks AllowOverride AuthConfig FileInfo Order allow,deny Allow from all </Directory> </Virtualhost>

MACOSX

{{1}}

1 个答案:

答案 0 :(得分:1)

我认为默认文件是/Library/WebServer/Documents/index.html。确保在/etc/apache2/httpd.conf末尾添加了配置文件。像这样:

Include /etc/apache2/users/XXXXX.conf