Hi Johan

Are you using Apache as a reverse proxy to provide external web access to
internal hosts? This may help then:

If you are using Apache with the ProxyPass directive for your external
proxy, you also need to include a ProxyPassReverse directive for each
virtual host in httpd.conf.

i.e.

<VirtualHost 1.2.3.4>
ServerName vhost4.foo.bar
...etc...
ProxyPass / http://10.0.0.4/
ProxyPassReverse http://10.0.0.4/
</VirtualHost>

<VirtualHost 1.2.3.4>
ServerName vhost5.foo.bar
...etc...
ProxyPass / http://10.0.0.5/
ProxyPassReverse / http://10.0.0.5/
</VirtualHost>

Do this for each virtual host you are exposing to the outside world via your
proxy.

This way, Apache knows to translate any 302 redirect hostnames to the
outside world vhost's name.

Hope this helps.

James


Reply via email to