tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Quick Questions on some Tomcat settings
Date Wed, 05 Jan 2011 21:16:45 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Josh,

On 1/5/2011 4:08 PM, Josh Gooding wrote:
> Here's the scenario.  On this server we are currently running Apache 2.2 for
> our companies wiki on port 80.  This is bound to a specific IP address and
> we can navigate to 'Wiki' in the address of the web browser and viola, it
> appears.
> 
> With that in mind, can I:
> 
> Have tomcat serve on port 80 (bound to a different IP address than the
> Apache 2.2 installation)

Yes. Use the "address" attribute of the <Connector> element:
http://tomcat.apache.org/tomcat-6.0-doc/config/http.html

> on the same machine, and when 'this-name' is
> entered into the web browser, it will serve it?

If foo.bar.com points to the Apache ip address and foo2.bar.com points
to the "other" ip address and you bind Tomcat to the "other" ip address
then everything will work.

> I am aware that I can
> forward the tomcat serving through the httpd server, but I am not willing to
> (unless it's the only way to do so.)

Tomcat is perfectly willing to serve HTTP requests directly.

> Would this be in the virtual hosting section of the documentation by chance?

Virtual hosting is not necessary in this case: just use a single <Host>
and make it the default (which is the default configuration for Tomcat
anyway).

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

iEYEARECAAYFAk0k370ACgkQ9CaO5/Lv0PBysgCgnVTuDuIl2+dBuP9wx9R7tqOo
K0YAnj1rYBB616UrolaO6/AWS+Dif4WZ
=ytyB
-----END PGP SIGNATURE-----

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


Mime
View raw message