J. Zimmerman wrote:
> I am just getting started with Tomcat and have been asked to take on the
> administration of our Tomcat servers at our college.  I am not one of the
> developers, just the administrator.  So far everything has gone pretty
> smoothly except for getting everything to run proxied via Apache (at least
> the way we would like it).
> 
> Our requirement is for Tomcat to deliver the application through
> http://hostname:8080/appname and/or ajp://hostname:8009/appname.  This
> happens by default and works well.  However, we want end users to access the
> applications via port 443 or 80 and we are doing this via Apache.  I can
> make this work via proxy_ajp and proxy_http so that something like
> http://hostname/appname works just fine.
> 
> The wrench in the works is that we want to do virtual hosting through Apache
> and not have the appname appended to it.  The Apache virtual hosted URL's
> will be the ones exposed to the public.
> 
> For example if we developed an application called "mycoolapp" and we were
> deploying it at a website of the same name we would want the application to
> run at http://mycoolapp.com and not http://mycoolapp.com/mycoolapp.

Inside your virtual host, something like:

ProxyPass / http://tomcat.host:8080/mycoolapp/
ProxyPassReverse / http://tomcat.host:8080/mycoolapp/

should do the trick.

What have you tried and what, exactly, didn't work?

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to