Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Apache: ErrorDocument not allowed here

315 views
Skip to first unread message

jivanmukta

unread,
Dec 11, 2012, 4:50:40 AM12/11/12
to
I use XAMPP in Windows XP. I have internal error when browsing my page. In error.log I see:

[Tue Dec 11 10:34:46 2012] [alert] [client 127.0.0.1] C:/Program Files/xampp/htdocs/xampp/rozgloszenia/public_html/.htaccess: ErrorDocument not allowed here

In my .htaccess I have:

#v+

ErrorDocument 401 "C:\Program Files\xampp\htdocs\xampp\rozgloszenia\public_html\denial.html"
AuthUserFile "C:\Program Files\xampp\htdocs\xampp\rozgloszenia\.htpasswds\.htpass"
AuthName "Strony zabezpieczone"
AuthType Basic
require valid-user

...

#v-

I have the file denial.html with the specified path in my Windows XP. I also tried / or \\ instead of \ - it doesn't help. I use ErrorDocument in Linux with Linux path of denial.html and it works fine.
Please help.

diov...@gmail.com

unread,
Nov 9, 2013, 12:38:56 PM11/9/13
to
AllowOverride AuthConfig FileInfo

AuthConfig for the AuthName & friends
FileInfo for the ErrorDocument
http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride
0 new messages