From apwww@hyperreal.org Fri Aug 22 05:21:03 1997 Received: (from apwww@localhost) by hyperreal.org (8.8.5/8.8.5) id FAA09850; Fri, 22 Aug 1997 05:21:03 -0700 (PDT) Message-Id: <199708221221.FAA09850@hyperreal.org> Date: Fri, 22 Aug 1997 05:21:03 -0700 (PDT) From: Frank Wuebbeling Reply-To: frank.wuebbeling@ESCHER.UNI-MUENSTER.DE To: apbugs@hyperreal.org Subject: Can't redirect / X-Send-Pr-Version: 3.2 >Number: 1040 >Category: mod_alias >Synopsis: Can't redirect / >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Class: change-request >Submitter-Id: apache >Arrival-Date: Fri Aug 22 05:30:02 1997 >Last-Modified: Fri Aug 22 08:06:35 PDT 1997 >Originator: frank.wuebbeling@math.uni-muenster.de >Organization: >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: State-Changed-From-To: open-closed State-Changed-By: Lars.Eilebrecht@unix-ag.org State-Changed-When: Fri Aug 22 08:06:35 PDT 1997 State-Changed-Why: Please use mod_rewrite for this purpose. See the manual for configuration details. (In Apache 1.3 mod_alias will support regular expressions.) >Unformatted: