Tôi đã có bản cài đặt XAMPP chạy trên Windows 7.
Ngay sau khi tôi thêm Virtualhost vào httpd-vhosts.conf, CẢ HAI 'thông thường' http://localhostVÀ cái mới dropbox.local không hoạt động.
Đây là những gì tôi đã thêm vào 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>
Vì vậy, tôi tìm kiếm dropbox.local-error.logthông tin của tôi :
[Thu Feb 02 10:41:57 2012] [error] [client 127.0.0.1] client denied by server configuration: E:/Documenten/Dropbox/Dropbox/dummy-htdocs/
Lỗi này dường như được giải quyết bằng cách thêm
<directory "E:/Documenten/Dropbox/Dropbox/dummy-htdocs">
Allow from all
</directory>
Nhưng bây giờ tôi nhận được lỗi này trong 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/
Hơn nữa, khi tôi cố gắng truy cập http://localhost, tôi không gặp bất kỳ lỗi nào thường xuyên error.log, mặc dù tôi gặp phải error 403khi tôi cố gắng truy cập nó.
Ai có thể giúp ... Nó làm tôi phát điên: S
EDIT: Cũng httpd.confcó những điều sau đây (Tôi đã thấy nó được đề cập nhiều lần, vì vậy trước khi có ai nói điều đó):
<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>