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>