4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 .htaccess -- ErrorDocument can't work with 401 error
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
b:z
Junior WebHelper
Junior WebHelper


Joined: 25 May 2005
Posts: 2

PostPosted: Wed May 25, 2005 2:41 am (12 years, 5 months ago) Reply with QuoteBack to Top

Here is my .htaccess fille which put in "/var/www/html/" folder in my server.
Quote:
ErrorDocument 400 http://www.abc.com/error/400.htm
ErrorDocument 401 http://www.abc.com/error/401.htm
ErrorDocument 403 http://www.abc.com/error/403.htm
ErrorDocument 404 http://www.abc.com/error/404.htm


Everything work fine, apache can display all error page as i want, except 401 error. 401 error can display "401.htm" page when user have met this error.
And this is the error when i put all ErrorDocument above in my httpd.conf:

Quote:
....cannot use a full URL in a 401 ErrorDocument directive


Please show me the way to my apache can display "401.htm" error page instead of default 401 error page.
Thank you very much.
OfflineView User's ProfileFind all posts by b:zSend Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Wed May 25, 2005 4:02 pm (12 years, 5 months ago) Reply with QuoteBack to Top

Try this:

Code:
ErrorDocument 401 /error/401.htm

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
b:z
Junior WebHelper
Junior WebHelper


Joined: 25 May 2005
Posts: 2

PostPosted: Thu May 26, 2005 2:23 am (12 years, 5 months ago) Reply with QuoteBack to Top

Oh. thanks for your reply. However, it can't work as i want. I have tried as your guide but nothing is better.
Quote:
ErrorDocument 400 /error/400.htm
ErrorDocument 401 /error/401.htm
ErrorDocument 403 /error/403.htm


And i can access to /error through my web serve : "http://www.abc.com/error/401.htm".

Please help me.
OfflineView User's ProfileFind all posts by b:zSend Personal Message
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.063035 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme