I have two apps which I am trying to proxy through Apache.
How do I set up the servers.conf if I have two apps I need to proxy?
I'm using Apache 2.0.52 and httpd.conf looks like:
ServerName app1.mydomain.com
ProxyPass / http://localhost:8082/app1/
ProxyPassReverse /
It is just the port your Tomcat is running on, which could be any port,
so if you are using 8082 that will be your port... it's better though
not to be on port 80.
mip wrote:
Thanks Peter.
Should that be:
--
servers.conf
--
T1 tomcat.server.com:8082
ALL tomcat.ser
Thanks Peter.
Should that be:
--
servers.conf
--
T1 tomcat.server.com:8082
ALL tomcat.server.com:8082
?
If not what is port 8081 being used for?
Peter Stavrinides wrote:
>
> Thats because your configuration is incomplete, in order for Apache to
> pass the cookie
Thats because your configuration is incomplete, in order for Apache to
pass the cookie to the correct context you need to do some additional
configuration (or alternatively use a connector like mod_jk)
You may need to configure the jvmRoute parameter in server.xml, this
allows Apache to map to
I'm trying to proxy my Tomcat web application through Apache 2.0 using
mod_proxy.
I have uncommented the following in my server.xml:
and I've added the following to my httpd.conf:
ServerName foo.bar.com
ProxyPass / http://foobar.com:8082/app/