[EMAIL PROTECTED] wrote:
I want Apache to work like normal for http://domain1.org (port 80)
but invisibly move clients to port 8080 if they want http://domain2.org.
(i.e. I don't want clients to have to type http://domain2.org:8080
explicitly.)
This doesn't work....
NameVirtualHost *:80
<VirtualHost *:80>
ProxyPass http://domain2.org http://domain2.org:8080
ProxyPassReverse http://domain2.org http://domain2.org:8080
</VirtualHost>
....
* http://domain1.org and http://domain2.org both go to port 80 still. :(
Chris
I have used the following site as a reference in the past. It is
explaining how to do it for their app, but it works for anything. You
don't have your virtual host configured properly. You need to use name
based virtual hosts, and then mod_proxy.
Name based virtual hosts:
http://httpd.apache.org/docs/1.3/vhosts/name-based.html
Mod_proxy example: http://snipsnap.org/space/Apache+as+Proxy
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list