You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "Dirk.vanGulik" <Di...@jrc.it> on 1996/05/01 11:15:41 UTC

Re: pathname aliase in Apache (fwd)

This was exactly what the uri-remap module I submitted some
time ago would do. I am not sure wether it made it in ? I
think most people voted in favour provided the name change.

Dw.

> 
> 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.
>