-----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-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org