为什么我把网站根目录配成public就文件访问就提示找不到文件了?
httpd-vhosts.conf的内容如下
# Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
DocumentRoot E:/GreenSoftware/wamp64/www/thinkphp/public
<Directory "E:/GreenSoftware/wamp64/www/thinkphp/public/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
报错信息:
( ! ) Warning: require(E:\GreenSoftware\wamp64\www\thinkphp\public/../thinkphp/start.php): failed to open stream: No such file or directory in E:\GreenSoftware\wamp64\www\thinkphp\public\index.php on line 17
Call Stack
#
Time
Memory
Function
Location
1 0.0000 237896 {main}( ) ...\index.php:0
( ! ) Fatal error: require(): Failed opening required 'E:\GreenSoftware\wamp64\www\thinkphp\public/../thinkphp/start.php' (include_path='.;C:\php\pear') in E:\GreenSoftware\wamp64\www\thinkphp\public\index.php on line 17
Call Stack
#
Time
Memory
Function
Location
1 0.0000 237896 {main}( ) ...\index.php:0