Solved issue: Directory index forbidden by Options directive

I want to change default location of Apache folder which is "var/www/html" (Linux) or "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs" (Windows)

  1. DocumentRoot "D:/PHP"

When i tried the "http://localhost" in browser, i got 403 error page "You don't have permission to access / on this server.". In apache log i got following error:

[error] [client 127.0.0.1] Directory index forbidden by Options directive: D:/PHP/

I changed the directory as same as DocumentRoot . It works fine.

  1. Directory "D:/PHP">
  2. Options Indexes FollowSymLinks ExecCGI
  3. AllowOverride All
  4. Order allow,deny
  5. Allow from all
  6. < /Directory>

Comments