httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Edwards" <>
Subject [users@httpd] aliasmatching, $1, $2, etc. need explanation please
Date Fri, 08 Aug 2003 14:22:38 GMT

I'm trying to figure out what the $1,  $2, etc.. mean in the following:

ScriptAliasMatch ^/~([^/]*)/cgi-bin/(.*) /home/$1/cgi-bin/$2

With a request to

Are they variables which contain a match against the regex?

Like $1 = user, $2 = script.cgi ?

I have an AliasMatch, ^/(.*) /some/place/index.php$1

with a request to

What is stored in $1?

I'm thinking /home/main.html?this=something

Am I correct?

Is there a $2 variable for this match also?  If so, what would it be.


Chris Edwards
Web Application Developer
Outer Banks Internet, Inc.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message