apache2 mod_proxy without 301 moved permanently?

Posted by Guy Sensei on Server Fault See other posts from Server Fault or by Guy Sensei
Published on 2011-09-27T16:13:32Z Indexed on 2012/10/09 9:41 UTC
Read the original article Hit count: 331

Filed under:
|
|

Is it possible to not send a 301 moved permanently response to the client when using mod_proxy? I would like the client to deal with the reverse proxy as opaquely as possible.

My Virtual Host Settings- relevant snippet
ProxyPreserveHost On
ProxyPass /GTM http://192.168.1.27/GTM
ProxyPassReverse /GTM http://192.168.1.27/GTM

wget localhost/GTM
--2011-09-27 21:54:22-- localhost/GTM
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... failed: Connection refused.
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: localhost/GTM/ [following]
--2011-09-27 21:54:22-- localhost/GTM/
Reusing existing connection to localhost:80.
HTTP request sent, awaiting response... 200 OK

© Server Fault or respective owner

Related posts about reverse-proxy

Related posts about apache2