我在 Windows 7 上运行了 XAMPP 安装。
一旦我将 VirtualHost 添加到 httpd-vhosts.conf,'常规'http://localhost
和新dropbox.local
的都不起作用。
这是我添加到我的httpd-vhosts.conf
:
<VirtualHost *:80>
ServerAdmin postmaster@dummy-host.localhost
DocumentRoot "E:/Documenten/Dropbox/Dropbox/dummy-htdocs"
ServerName dropbox.local
ServerAlias www.dropbox.local
ErrorLog "logs/dropbox.local-error.log"
CustomLog "logs/dropbox.local-access.log" combined
</VirtualHost>
所以我查找了我dropbox.local-error.log
的任何信息:
[Thu Feb 02 10:41:57 2012] [error] [client 127.0.0.1] client denied by server configuration: E:/Documenten/Dropbox/Dropbox/dummy-htdocs/
这个错误似乎可以通过添加来解决
<directory "E:/Documenten/Dropbox/Dropbox/dummy-htdocs">
Allow from all
</directory>
但现在我得到这个错误dropbox.local-error.log
:
[Thu Feb 02 10:45:56 2012] [error] [client ::1] Directory index forbidden by Options directive: E:/Documenten/Dropbox/Dropbox/dummy-htdocs/
此外,当我尝试访问时http://localhost
,我在常规中没有收到任何错误error.log
,尽管error 403
当我尝试访问它时我得到了。
任何人都可以帮忙......这让我发疯:S
编辑:还有httpd.conf
以下内容(我已经多次提到它,所以在任何人说之前):
<IfModule dir_module>
DirectoryIndex index.php index.pl index.cgi index.asp index.shtml index.html index.htm \
default.php default.pl default.cgi default.asp default.shtml default.html default.htm \
home.php home.pl home.cgi home.asp home.shtml home.html home.htm
</IfModule>