httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frederick, Fabian" <Fabian.Freder...@prov-liege.be>
Subject RE: [users@httpd] proxypassreverse redirection
Date Mon, 13 Feb 2006 07:52:01 GMT
This method works but I'd like to avoid access _only_ without authentification :
http://site returns 401 with www-auth

... But I'm surprised http://user:password@site works in 2 phases :

	1.Server returns 401 (why?)
	2.Account is logged; server returns 302

How can I recognize http://site from the second http://user:password@site ? Is it possible
from cgi to check complete url ? 

Fabian

-----Message d'origine-----
De : jslive@gmail.com [mailto:jslive@gmail.com] De la part de Joshua Slive
Envoyé : vendredi 10 février 2006 15:49
À : users@httpd.apache.org
Objet : Re: [users@httpd] proxypassreverse redirection

On 2/10/06, Frederick, Fabian <Fabian.Frederick@prov-liege.be> wrote:
> It's exactly what I need ! 401 with proxyerroroverride displays my new page but keeps
displaying www-auth box.Do you have a sample of such a script I could use to change 401 ->
404 for instance ?

#!/bin/sh
echo Status: 301
echo Location: http://yoursite.example.com/path/to/other/page.html
echo

(Not tested.)

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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message