ScriptAliasMatch ^/IMAGESERVER/(.*) /QSYS.LIB/RJSIMAGE.LIB/$1.PGM
in our product - the caret (^) means the beginning of whatever follows
the IP address and optional port. The bit in parentheses establishes a
replacement value for later, specified by a dollar-sigh ($) and an
ordinal that corresponds to its position in the string.
(Maybe the caret is superfluous - I've seen an example of Alias that, of
course, would not have the caret, and that has me wondering.)
The URL for the above could be
This would call program VERNSPGM in library RJSIMAGE and there are 2 CGI
Does that help? Does it [Alias]Match what you need?
There is also an Alias directive that doesn't use regular expressions at
all - it's essentially hard-coded.
Is this for CGI? Then ScriptAliasMatch is the thing, because I think
AliasMatch is for non-scripting - yes, I just read that the "Script"
versions "designate the target as a CGI script."
On 3/2/2011 9:52 AM, Jon Paris wrote:
I cannot find an example of how to AliiasMatch an exact name pattern.
For example - I want to match myserver/jonspgm to qsys.lib/jons.lib/jonspgm.pgm
But it should not match myserver/jonspgm1.php or myserver/jonspgm.php
ScriptAliasMatch ^/jonspgm /QSYS.LIB/JONS.LIB/JONSPGM.PGM
would do it as I understood the Apache docs but obviously not as anything that starts with the jonspgm string is being matched.
I guess this reflects my ongoing failure ti understand regex!
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2021 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.