0

我正在使用此配置,并且我的 .dev 工作正常,但它的显示it works而不是其中的index.php内容是否有默认值index.php

MACOSX

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

1 回答 1

1

我相信默认文件是/Library/WebServer/Documents/index.html. 确保您的配置文件添加在/etc/apache2/httpd.conf. 像这样的东西:

Include /etc/apache2/users/XXXXX.conf
于 2013-02-20T12:21:48.613 回答