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)
- 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.
- Directory "D:/PHP">
- Options Indexes FollowSymLinks ExecCGI
- AllowOverride All
- Order allow,deny
- Allow from all
- < /Directory>
Comments