-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chuck,

On 5/21/2009 11:43 PM, Caldarale, Charles R wrote:
>> From: J. Zimmerman [mailto:john.z...@gmail.com] Subject: Apache 2.2
>> to Tomcat 6 via proxy_ajp
>> 
>> 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.
> 
> Do you really need httpd in the game?  Is it providing any useful
> service (e.g., PHP)?  If not, remove it and simplify your life.

+1

> If you must have httpd in the picture, mod_rewrite might help if the
> Tomcat virtual hosting is insufficient (but perhaps you've already
> tried that).

I'm not sure mod_rewrite is necessary. Instead, you can do something
like this:

<VirtualHost *:80>
  ServerName mycoolapp.com


  ProxyPass / ajp://host:8009/mycoolapp
</VirtualHost>

You could also get away with:

<VirtualHost *:80>
  ServerName mycoolapp.com


  ProxyPass / ajp://host:8009/
</VirtualHost>

...if you deploy mycoolapp as the ROOT context.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkoWp10ACgkQ9CaO5/Lv0PARvQCfVLmzTfeXl7W3xqEc8LOsMXu7
6voAoJizHcvoTPBCgJB9JSqmTeJFSPv2
=2zTC
-----END PGP SIGNATURE-----

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

Reply via email to