LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-24-2005, 10:03 PM   #1
b:z
Member
 
Registered: Mar 2005
Posts: 146

Rep: Reputation: 15
.htaccess -- ErrorDocument can't work with 401 error


Here is my .htaccess fille which put in "/var/www/html/" folder in my server.
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.
 
Old 05-26-2005, 09:28 AM   #2
zeos
Member
 
Registered: Aug 2003
Posts: 150

Rep: Reputation: 15
Instead of passing it a URL, pass the full path to the file...

Code:
ErrorDocument 401 /var/www/errors/401.htm
Make sure you edit to point to the actual location of your document..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
htaccess don't work???? cuencano Linux - Security 3 07-23-2005 06:09 AM
.htaccess help, passwords dont work Atrocity Linux - General 4 07-04-2004 04:22 PM
.htaccess ErrorDocument and IE BaerRS Linux - Software 3 02-21-2003 06:17 PM
htaccess not work on apache 2 adrianmak Linux - Networking 2 01-09-2003 02:25 AM
401 ErrorDocument with Apache c0c0deuz Linux - General 3 11-17-2002 07:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration