[EMAIL PROTECTED] ErrorDocument 401 problem

2007-05-07 Thread Christian HAESSIG
Hi,

I'm using apache 1.3.34.

I try to do a redirection on an 401 error in a virtual host. I saw in the
apache FAQ I had to use ErrorDocument 401 /foo/bar

So, that's what I've done.
Here is the virtual host description :

NameVirtualHost *:80

VirtualHost *:80
ServerName toto.ircad.fr
DocumentRoot /var/www/sites

ErrorDocument 401 /var/www/sites/untranet_redirect/index.php

Directory /var/www/sites/
AuthType Basic

Options Indexes Includes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
/Directory
/VirtualHost

As you can see, the redirection should be done to the file
/var/www/sites/untranet_redirect/index.php when an 401 error occurs.
Unfortunately, I get always the following error :

[notice] cannot use a full URL in a 401 ErrorDocument directive ---
ignoring!

when I access the virtual host.

For your information, I also tried with an
ErrorDocument 401 /untranet_redirect/index.php with no more luck, and even
ErrorDocument 401 /untranet_redirect which doesn't work better.

I also tried to put the ErrorDocument line into the Directory tag. It does
not work.

The directory /var/www/sites/untranet_redirect exists, and the file
index.php in it too.

Can someone help me with this ?

Thanks,
Christian


-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] ErrorDocument 401 problem

2007-05-07 Thread Joshua Slive

On 5/7/07, Christian HAESSIG [EMAIL PROTECTED] wrote:


ErrorDocument 401 /var/www/sites/untranet_redirect/index.php



As you can see, the redirection should be done to the file
/var/www/sites/untranet_redirect/index.php when an 401 error occurs.
Unfortunately, I get always the following error :

[notice] cannot use a full URL in a 401 ErrorDocument directive ---
ignoring!


ErrorDocument must be a web-path -- that is, relative to the
DocumentRoot, not the filesystem root.

But that isn't the main problem here. Apache will only give you that
error message if the ErrorDocument doesn't start with a /. So there
must be somethign else funny going on here.

Perhaps you are editing the wrong config file? Perhaps there is an
.htaccess file someplace with a faulty ErrorDocument?

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [EMAIL PROTECTED] ErrorDocument 401 problem

2007-05-07 Thread Christian HAESSIG
Thanks very much, Joshua ; you were right : our web developpers put a faulty
.htaccess.

Christian

 -Message d'origine-
 De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de Joshua
 Slive
 Envoyé : lundi 7 mai 2007 17:47
 À : users@httpd.apache.org
 Objet : Re: [EMAIL PROTECTED] ErrorDocument 401 problem


 On 5/7/07, Christian HAESSIG [EMAIL PROTECTED] wrote:

  ErrorDocument 401 /var/www/sites/untranet_redirect/index.php

  As you can see, the redirection should be done to the file
  /var/www/sites/untranet_redirect/index.php when an 401 error occurs.
  Unfortunately, I get always the following error :
 
  [notice] cannot use a full URL in a 401 ErrorDocument directive ---
  ignoring!

 ErrorDocument must be a web-path -- that is, relative to the
 DocumentRoot, not the filesystem root.

 But that isn't the main problem here. Apache will only give you that
 error message if the ErrorDocument doesn't start with a /. So there
 must be somethign else funny going on here.

 Perhaps you are editing the wrong config file? Perhaps there is an
 .htaccess file someplace with a faulty ErrorDocument?

 Joshua.

 -
 The official User-To-User support forum of the Apache HTTP Server Project.
 See URL:http://httpd.apache.org/userslist.html for more info.
 To unsubscribe, e-mail: [EMAIL PROTECTED]
   from the digest: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] ErrorDocument 401

2006-12-14 Thread Steve Swift

In what way does safari not work fine? In other words, what are the
symptoms?

On 13/12/06, Liz Kim [EMAIL PROTECTED] wrote:


I have a 401 error on a directory redirect to a local file...
It seems to work fine on most browsers I've tested so far EXCEPT safari...

Anyone else have this problem?
Any ideas?
Thanks!





--
Steve Swift
http://www.swiftys.org.uk


Re: [EMAIL PROTECTED] ErrorDocument 401

2006-12-14 Thread Liz Kim

It does not redirect or give me a 401 error.
It stays on the same page..

On 12/14/06, Steve Swift [EMAIL PROTECTED] wrote:


In what way does safari not work fine? In other words, what are the
symptoms?

On 13/12/06, Liz Kim [EMAIL PROTECTED]  wrote:

 I have a 401 error on a directory redirect to a local file...
 It seems to work fine on most browsers I've tested so far EXCEPT
 safari...
 Anyone else have this problem?
 Any ideas?
 Thanks!




--
Steve Swift
http://www.swiftys.org.uk


[EMAIL PROTECTED] ErrorDocument 401

2006-12-13 Thread Liz Kim

I have a 401 error on a directory redirect to a local file...
It seems to work fine on most browsers I've tested so far EXCEPT safari...
Anyone else have this problem?
Any ideas?
Thanks!