httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
Subject Re: [users@httpd] Reverse proxy not working
Date Wed, 23 Feb 2005 13:58:15 GMT
On Tue, 22 Feb 2005 22:18:19 -0500, Tony Karakashian
<tkarakashian@gmail.com> wrote:
> 
> RewriteEngine On
> RewriteLogLevel 30
> RewriteLog logs/rewrite.log
> RewriteRule ^/exchange/(.*) http://192.168.0.1/exchange/$1 [P]
> RewriteRule ^/public/(.*) http://192.168.0.1/public/$1 [P]
> RewriteRule ^/exchweb/(.*) http://192.168.0.1/exchweb/$1 [P]
> RewriteRule ^/wireless/(.*) http://192.168.0.3/$1 [P]
> 
> The last line is duplicated from my original config, and worked in the
> past.  However, now, when I attempt to access one of the proxied
> pages, I get the internal IP of the server, rather than the proper
> URL.  So, for example, I can't access /wireless from the outside since
> it's not a valid address.
> 
> The rewrite log seems to indicate the proxy is working as it should:
> 
> init rewrite engine with requested uri /exchange/
> applying pattern '^/exchange/(.*)' to uri '/exchange/'
> rewrite /exchange/ -> http://192.168.0.1/exchange/
> forcing proxy-throughput with http://192.168.0.1/exchange/
> go-ahead with proxy request proxy:http://192.168.0.1/exchange/ [OK]
> 
> But, it's not proxying, it's just rewriting the URL and returning it
> to the client.

Are you sure it is the proxy that is doing the redirect and not the
origin server?

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


Mime
View raw message