You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rob Hartill <ro...@imdb.com> on 1996/04/30 18:58:03 UTC

pathname aliase in Apache (fwd)

not acked


Date: Tue, 30 Apr 1996 18:45:40 +0200 (MET DST)
From: Lorenzo Vicisano <vi...@iet.unipi.it>
To: apache-bugs@apache.org, drtr@ast.cam.ac.uk
Subject: pathname aliase in Apache
Message-ID: <Pi...@alex.iet.unipi.it>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


This is not a bug report, but a suggestion for a (new) feature in
Alias and ScriptAlias statements (srm.conf).

CERN httpd allows this:

Exec    /fake_path/*                  /real_path/unique_target

I have used it to address a single cgi-bin script, that, after
parsing the requested URL, can ganerate the appropriate response
on the fly.  I believe it is very useful in some cases.

In order to make it work with Apache I made the following patch to
the 1.1 sources (I think it to be applicable to previous versions
either):

--- mod_alias.c	Tue Apr 30 11:59:12 1996
+++ mod_alias.c.orig	Sun Mar 31 04:00:11 1996
@@ -150,10 +150,4 @@
 	    while (*urip == '/') ++ urip;
 	}
-	else if ((*aliasp == '*')&&(aliasp == (end_fakename-1))) {
-		/* '*' as last char in the alias matches any
-		 * remaining char in the supplied URI
-		 */
-	    return( strlen (uri) );
-	}
 	else {
 	    /* Other characters are compared literally */


I would like to know what you think about this.

	Regards,
	Lorenzo Vicisano.


<|--------------------------------------------------------------------------|>
 | Lorenzo Vicisano                     | http://www.iet.unipi.it/~vicisano |
 | Dip. di Ingegneria dell'Informazione | e-mail vicisano@iet.unipi.it      |
 | Universita` di Pisa                  | Phone  +39-50-568654              |
 | Via Diotisalvi, 2 56100 PISA, ITALY  | Fax    +39-50-568522              |
<|--------------------------------------------------------------------------|>
----- End of forwarded message from Lorenzo Vicisano -----

-- 
Rob Hartill (robh@imdb.com)
The Internet Movie Database (IMDb)  http://www.imdb.com/
           ...more movie info than you can poke a stick at.