httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: [users@httpd] PATH_INFO/ScriptAlias bug in 2.0.49?
Date Tue, 18 May 2004 02:32:42 GMT

On Mon, 17 May 2004, Scott Bronson wrote:
>     ScriptAlias /user/blog "/usr/lib/cgi-bin/blosxom.cgi"
>
> Then, when I access http://example.com/user/blog/2004/04/23 the
> following CGI variables are set:
>
>     PATH_INFO = /2004/04/23
>     PATH_TRANSLATED = /var/www/2004/04/23
>     SCRIPT_NAME = /deargreer/blog

>     ScriptAliasMatch /[a-zA-Z0-9_-]+/blog "/usr/lib/cgi-bin/blosxom.cgi"
>
> The problem is, when I try to access the above URL, the variables are:
>
>     PATH_INFO =
>     PATH_TRANSLATED =
>     SCRIPT_NAME = /deargreer/blog/2004/04/23
>
> So, ScriptAlias and ScriptAliasMatch are behaving differently.

By design.  Probably what you want is

 ScriptAliasMatch /[a-zA-Z0-9_-]+/blog(.*) "/usr/lib/cgi-bin/blosxom.cgi$1

or something of the sort.  You may also want to capture the user part and
pass it someplace to the URL.

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


Mime
View raw message