tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chenll <c_l...@hotmail.com>
Subject RE: Tomcat+Apatche for two websites on one server
Date Thu, 28 Jan 2010 04:57:07 GMT

Thank you!

Can i install Tomcat and GeonetWork node firstly, because i will use Apatche for building
another website later instead of now.

in this case, should i just install Tomcat without any manual setting. And do the setting
you told me just when i building another website by Apatche?

 
> Date: Wed, 27 Jan 2010 13:47:45 -0500
> From: chris@christopherschultz.net
> To: users@tomcat.apache.org
> Subject: Re: Tomcat+Apatche for two websites on one server
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Ling,
> 
> On 1/27/2010 10:28 AM, chenll wrote:
> > Hi, My server is on Windows 2003 64 bit, and is running GIS license
> > manager. Now, i need to install Tomcat for runing GeonetWork node and
> > Apatche for building another website. And i have gotten two domain
> > name for both of them yet.
> > 
> > My question is how to install and set up both of them on my server?
> 
> Installation of both packages is done in the standard way.
> 
> Assuming that you want to use a single, standard TCP/IP port for both
> websites, then your best bet is to run Apache httpd on port 80 and have
> it forward requests to Tomcat for one of the web sites. That can be
> achieved using mod_proxy_ajp, which is included in Apache httpd 2.2.x.
> 
> Steps to set up:
> 1. Set up Apache httpd normally and get it working with your
> "other" website as a <VirtualHost>.
> 
> 2. Create a second <VirtualHost> for your GeonetWork and make sure it
> can serve a simple "test" page for requests using that host name.
> 
> 3. Install Tomcat and configure a <Connector> in conf/server.xml for
> the "AJP" protocol (If using Tomcat 6.0.x, one is already configured
> by default to run on port 8009). You can disable all other
> <Connectors> by commenting them out using standard XML comments.
> Deploy your webapp in the standard way.
> 
> 4. In your Apache httpd <VirtualHost>, add this configuration:
> 
> ProxyPass / ajp://localhost:8009/
> ProxyPassReverse / ajp://localhost:8009/
> 
> (You will have to change "localhost" to the hostname of the server
> running Tomcat if they are on separate servers)
> 
> 5. Re-start Apache httpd and now all requests to http://GeonetWorkHost/
> should be sent to Tomcat.
> 
> That should be enough to get you started. There are a number of other
> options, but I believe this is the easiest to get going.
> 
> Good luck,
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAktgilEACgkQ9CaO5/Lv0PCC+QCfVj0vWDL22HIHgKkya/7HZaDZ
> gosAoKlq/aRyrwFbWlVcUhTeG3Ct+Ro8
> =m4cl
> -----END PGP SIGNATURE-----
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
 		 	   		  
_________________________________________________________________
MSN十周年庆典,查看MSN注册时间,赢取神秘大奖
http://10.msn.com.cn
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message