httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <n...@webthing.com>
Subject Re: [users@httpd] mod_proxy for Reverse Proxy
Date Sat, 14 Feb 2004 10:18:45 GMT
> Hi,
>
> I am trying to set up a reverse proxy to redirect all .pl file to server
> on port 8080, and serve all static contents from server on port 80. Here
> is my setting (server on port 80):
>
> ProxyPass        / http://domain.com:8080/
> ProxyPassReverse / http://domain.com:8080/
> RewriteEngine On
> RewriteRule ^/(.*\.pl)$ http://domain.com:8080/$1 [P]
>
> But it seems like all request (not only .pl) is redirected to port 8080.
> How can I set it so only .pl is redirected to port 8080?

(1) Drop the rewrite stuff
(2) Put the ProxyPass directives in a <FilesMatch>

-- 
Nick Kew

---------------------------------------------------------------------
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