根目录不变(EasyPHP)

时间:2014-04-20 09:14:52

标签: php apache directory root easyphp

index.php文件夹中有一个public_html/的项目,我想要更改EasyPHP的根目录,所以这就是我所做的:

enter image description here

但是当转到localhost(或127.0.0.1)时,EasyPHP始终显示根目录:

enter image description here

任何解决方案?

1 个答案:

答案 0 :(得分:2)

您还需要在VirtualHost文件的末尾更改conf_files\httpd.conf

<VirtualHost 127.0.0.1>
    DocumentRoot "${path}/data/localweb/public_html"
    ServerName 127.0.0.1
    <Directory "${path}/data/localweb/public_html">
        Options FollowSymLinks Indexes
        AllowOverride All
        Order deny,allow
        Allow from 127.0.0.1
        Deny from all
        Require all granted
    </Directory>
</VirtualHost>

此致