昨天我在localhost上正在做一个项目,一切都很好,我可以毫无问题地访问。但今天,当我尝试打开我的网页的任何文件或访问localhost时,我得到了
403 Forbbiden
You don't have permission to access / on this server.
Apache/2.4.9 (Win32) PHP/5.5.12 Server at localhost Port 80
奇怪的是,我实际上可以访问localhost / phpmyadmin
Apache错误日志说明了这一点:
[Sun May 25 14:18:04.111705 2014] [mpm_winnt:notice] [pid 4996:tid 396] AH00455:
Apache/2.4.9 (Win32) PHP/5.5.12 configured -- resuming normal operations
[Sun May 25 14:18:04.268714 2014] [mpm_winnt:notice] [pid 4996:tid 396] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:13:13
[Sun May 25 14:18:04.268714 2014] [core:notice] [pid 4996:tid 396] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.9\\bin\\httpd.exe -d C:/wamp/bin/apache/apache2.4.9'
[Sun May 25 14:18:04.273714 2014] [mpm_winnt:notice] [pid 4996:tid 396] AH00418: Parent: Created child process 1152
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host.example.com] does not exist
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host2.example.com] does not exist
AH00112: Warning: DocumentRoot [C:/wamp/vhost] does not exist
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host.example.com] does not exist
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host2.example.com] does not exist
AH00112: Warning: DocumentRoot [C:/wamp/vhost] does not exist