Caldarale, Charles R wrote:
From: Dave Filchak [mailto:sub...@zuka.net]
Subject: Re: Configuration help with tomcat connectors
So, can you clarify what you mean by standalone?
Not front-ended by httpd or other web server.
Right now it is running on port 8080 and I have other sites
running on this server on the standard port 80.
So you are using httpd for something besides serving static content?
Can the standalone run on the server along side of
apache and share port 80
If by "apache" (which is an open-source software organization) you really mean
httpd, then no, two servers cannot share a single port on the same IP address. You have
several options:
A) Run the Tomcat web sites on a different IP address using port 80, not front
ended by httpd.
B) Continue to run httpd on port 80, and use mod_jk or mod_proxy to pass the
relevant requests to Tomcat (i.e., what you're trying to do now, with
apparently little success).
C) Put all of your web sites under Tomcat, eliminating httpd altogether. This
works *only* if you're not using httpd for something more esoteric, such as
running PHP.
Options A or B are likely easier in the short term, C would be the simplest for
the long term.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
OK well, I could do either A or B but would really like to understand
why B on my current server is not functioning.
However, perhaps you can confirm the setup for me? The way I understand
it is:
1. set up TOMCAT as a standalone server and change the listening port to
port 80 (only works if there is not another server running on port 80.
Otherwise you need to add another public IP to the server)
1a: I assume that if the DNS for a particular virtualhost (domain)
points to this new IP, the tomcat server will serve the correct files
based on the context?
2. Modify the server.xml file to reference each virtualhost you want to
serve i.e.
<Engine name="Catalina" defaultHost="virtualhost1">
<Host name="virtualhost1" appBase="virtualhost1apps"/>
<Host name="virtualhost2" appBase="virtualhost2apps"/>
</Engine>
3. Create directories for each of the virtual hosts in the tomcat
directory i.e.:
mkdir $CATALINA_HOME/virtualhost1apps
mkdir $CATALINA_HOME/virtualhost2apps
4. Configure the contexts (this is where it gets a bit murky for me)
a: create a META-INF directory inside of the Context and place a
context.xml in it i.e. $CATALINA_HOME/virtualhost1apps/META-INF/context.xml
Now, being as I am a tomcat rookie and just learning this stuff ... can
you or someone explain the difference between docroot and approot? Does
one hold static html and the other jsp etc? Where is docroot declared?
Thanks
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org