我正在使用此配置,而我的.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}}
答案 0 :(得分:1)
我认为默认文件是/Library/WebServer/Documents/index.html
。确保在/etc/apache2/httpd.conf
末尾添加了配置文件。像这样:
Include /etc/apache2/users/XXXXX.conf