php - Cant Access a "error" folder in subdomain.localhost/error/ -
i trying put of error documents 1 folder in website root.
ideally of error documents go http://subdomain.localhost/error/
whenever load url in browser message access forbidden!
error 403
.
i removed .htaccess
file document root. content of .htaccess
file is:
errordocument 403 /err_docs/401 errordocument 401 /err_docs/401 errordocument 404 /err_docs/404 errordocument 500 /err_docs/500 indexignore * # prevent directory listing order deny,allow allow *
/err_docs/
current folder error documents - (because /error
doesn't work).
upon inspecting apache error log find: [thu jun 25 13:46:57.445385 2015] [autoindex:error] [pid 5104:tid 1760] [client 127.0.0.1:51853] ah01276: cannot serve directory c:/xampp/apache/error/: no matching 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) found, , server-generated directory index forbidden options directive
i have tried following:
- removed
.htaccess
document root. (from both sub domain , domain). - checked there isn't
.htaccess
file in apache's folders
i happy go finding result on google have no idea search. can body tell me start looking issue, or for?
update contents of virtual hosts config file:
namevirtualhost localhost:80 <virtualhost *:80> <directory "c:\web"> options indexes followsymlinks multiviews includes execcgi allowoverride order allow,deny allow require granted </directory> servername localhost serveralias localhost documentroot "c:\web" </virtualhost> ####################################### namevirtualhost localhost:80 <virtualhost *:80> <directory 'c:\\personal\\web'> options indexes followsymlinks multiviews includes execcgi allowoverride order allow,deny allow require granted </directory> servername personal.localhost serveralias personal.localhost documentroot 'c:\\personal\\web' </virtualhost> #######################################
Comments
Post a Comment