Just for fun, what about this: RewriteCond $2 =asp [NC] RewriteRule (.*)\.([^.]*)$ http://aspserver/$1.asp [P]
-ascs -----Original Message----- From: Kuntze, Darin [mailto:[EMAIL PROTECTED] Sent: Friday, July 29, 2005 2:55 PM To: users@httpd.apache.org Subject: RE: [EMAIL PROTECTED] Mod_proxy ProxyMatch Thanks for the reply. Would the equivalent be: RewriteRule (.*)\.[aA][sS][pP]$ http://aspserver\$1.asp [P] Does this look correct? -----Original Message----- From: Joshua Slive [mailto:[EMAIL PROTECTED] Sent: Thursday, July 28, 2005 10:14 PM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] Mod_proxy ProxyMatch On 7/28/05, Kuntze, Darin <[EMAIL PROTECTED]> wrote: > > > I'm trying to do some proxy work on my apache 2 server. I have > requests for a couple of asp files that need to be proxied to another > server. Therefore I'm trying to use ProxyMatch to match only the files with the ".asp" > extension. > > Here's what I have so far (and it doesn't seem to work): > <ProxyMatch "\.[aA][sS][pP]$"> > Order deny,allow > Allow from all > ProxyPass http://aspwebserver/ > ProxyPassReverse http://aspwebserver/ </ProxyMatch> Anyone > have any ideas/suggestions? If there is a better way of doing this I'm > very open to trying a different route. <ProxyMatch> is for catching requests that are already being served by the proxy, not for specifying which requests to proxy. Try replacing that with <LocationMatch>. Alternatively, you can do this with RewriteRule and the [P] flag. 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: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- 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: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- 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: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]