httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kuntze, Darin" <dkun...@fnni.com>
Subject RE: [users@httpd] Mod_proxy ProxyMatch
Date Fri, 29 Jul 2005 12:54:52 GMT
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:jslive@gmail.com] 
Sent: Thursday, July 28, 2005 10:14 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Mod_proxy ProxyMatch

On 7/28/05, Kuntze, Darin <dkuntze@fnni.com> 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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org




---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message