You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Frank Wuebbeling <fr...@ESCHER.UNI-MUENSTER.DE> on 1997/08/22 14:30:02 UTC

mod_alias/1040: Can't redirect /

>Number:         1040
>Category:       mod_alias
>Synopsis:       Can't redirect /
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache (Apache HTTP Project)
>State:          open
>Class:          change-request
>Submitter-Id:   apache
>Arrival-Date:   Fri Aug 22 05:30:02 1997
>Originator:     frank.wuebbeling@math.uni-muenster.de
>Organization:
apache
>Release:        1.2.3
>Environment:
Linux 1.2.20 (and sparc-solaris), doesn't matter.
>Description:
All the documents in our server are located *under* the URL
http://wwwmath.uni-muenster.de/math/
(that is, all our documents are prefixed by math), because we are part of
a network of servers, and we own the "math"-part of the server. So, if
we get a request for the root document
http://wwwmath.uni-muenster.de/
we cannot serve it, rather we must redirect this request to the master http
server. Until now, we used the CERN server for this using the directive
redirect / http://www.uni-muenster.de/
This does not work with apache, because it assumes that the fake URL (the
first argument of redirect) is always the beginning of a path, so if we
use the above directive, /whatever will be redirected to
http://www.uni-muenster.de/whatever and we will never get a chance to serve
one single document. (Actually, I'd really like to redirect "Everything
but /math" to our master server).
>How-To-Repeat:

>Fix:
Don't know. There should be a way of specifying that the fake path
is to be taken literally, probably by adding a $-sign to the path
>Audit-Trail:
>Unformatted: