You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Marc Farrow <ma...@gmail.com> on 2006/08/28 22:01:28 UTC

[users@httpd] mod_alias

I am trying to use the mod_alias module and I have problems getting my
Regular Expression to work properly.

The alias works with the directory tag, however, the aliasmatch does not.
You will note they are similar for testing purposes.

Any thoughts?


Alias /perm20 "c:/webstatic/perm_drive_20/myfolder/image"

AliasMatch ^/perm(.*) c:/webstatic/perm_drive_$1/myfolder/image

# trying to match anything that is in the range of 00 - 40.

<Directory ~ "^c:/webstatic/perm_drive_[01234]\d/myfolder/image">

AllowOverride None

Order allow,deny

Allow from all

ForceType image/tiff

</Directory>


-- 
Marc Farrow

[users@httpd] Fwd: mod_alias

Posted by Marc Farrow <ma...@gmail.com>.
Can anyone offer any advice on this?

---------- Forwarded message ----------
From: Marc Farrow <ma...@gmail.com>
Date: Aug 28, 2006 4:01 PM
Subject: mod_alias
To: users@httpd.apache.org

 I am trying to use the mod_alias module and I have problems getting my
Regular Expression to work properly.

The alias works with the directory tag, however, the aliasmatch does not.
You will note they are similar for testing purposes.

Any thoughts?


Alias /perm20 "c:/webstatic/perm_drive_20/myfolder/image"

AliasMatch ^/perm(.*) c:/webstatic/perm_drive_$1/myfolder/image

# trying to match anything that is in the range of 00 - 40.

<Directory ~ "^c:/webstatic/perm_drive_[01234]\d/myfolder/image">

AllowOverride None

Order allow,deny

Allow from all

ForceType image/tiff

</Directory>


-- 
Marc Farrow


-- 
Marc Farrow