LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   A Question about apache (https://www.linuxquestions.org/questions/linux-software-2/a-question-about-apache-69450/)

KittyWu 07-01-2003 11:40 PM

A Question about apache
 
when I start or stop apache, system give me an error info.:[notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring!

what is it meaning?

Thanks

MRK 07-01-2003 11:54 PM

It means that in your httpd.conf file, the error directive for your 401 errors has a full url stated in it. It shoud look like this:

ErrorDocument 401 /subscription_info.html

Your's probably looks like this:

ErrorDocument 401 http://www.blah.com/subscription_info.html

This is a quote from the apache's documentation:
Quote:

In addition, if you use a remote URL in an ErrorDocument 401, the client will not know to prompt the user for a password since it will not receive the 401 status code. Therefore, if you use an ErrorDocument 401 directive then it must refer to a local document.
You must have a local url stated for the 401 ErrorDocument.

-Mr.K

KittyWu 07-02-2003 01:38 AM

But I check the httpd.conf file, the ErrorDocument 401 is

ErrorDocument 401 "file:"

Evilone 07-02-2003 03:43 AM

This is entirely the problem. Replace "File" with somthing it understands. By the look of it an HTML document.


All times are GMT -5. The time now is 01:07 AM.