>> You can do this using a standard ScriptAliasMatch
 
 >> Here is an example
 
 >> AliasMatch /myapp/(.*)   /myapp/$1
 >> ScriptAliasMatch /myappd/(.*).html /qsys.lib/myapp.lib/$1.pgm
 
I think it is an IBM extension to Apache, but you can actually have multiple wildcards in these directives.  This was something the old Exec directive could do so I guess they needed to match that.  If I recall correctly you simply insert the * wildcard as many times as you need and then reference the individual "bits" by referencing them as $1, $2, etc. Like so:
 
AliasMatch ^/html2-(.*)/(.*)$ /QSYS.LIB/DEV2LAB$1.LIB/HTMLSRC.FILE/$2.MBR
ScriptAliasMatch ^/cgi2-(.*)/(.*)$ /QSYS.LIB/DEV2LAB$1.LIB/$2.PGM
 
I use this a lot to allow a single directive to reference multiple libraries.

 
Jon Paris


YAHOO! GROUPS LINKS




Reply via email to