Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Setting URLs to be directed to Tomcat |
|
Author |
|
bmccaslin
Joined: 19 Feb 2007 Posts: 3 Location: Atlanta
|
Posted: Tue 20 Feb '07 18:59 Post subject: Setting URLs to be directed to Tomcat |
|
|
Firstly, I'm running Apache 2.2.4 and Tomcat 5.0.27 on Windows 2003 Server.
As there is so much documentation out there and I'm quite new to this, I'm having a hard time trying to figure out how all of this is supposed to be setup. I've found a lot of documentation on how to setup the connectors, but none to say how to take a domain name (say www.mywebapp.com) and direct it to a context in Tomcat so I could go to any browser, type in the domain name and have it appear.
Apache is up and running, and it's httpd.conf file has the Include instruction at the end to call the mod_jk.conf file created by Tomcat. All that exists in the mod_jk.conf file is a VirtualHost directive for localhost with JKMounts setup up for each context that exists in Tomcat. Do all of my other directives need to be placed in that file as well JkWorkersProperty, JkLog, etc...), or can they stay in httpd.conf?
Right now I'm just looking for the simplest way possible to make a web application available over the internet. Some specific questions I have are:
Are there any other modifications that need to be made to server.xml other than adding a listener for apache?
Where do I setup the HTTP server to look for incoming requests for www.mywebbapp.com?
Is it possible to publish this web app without using Apache? The other web sites on our server use IIS 6.0 (they're actually setup as redirects). I would've have done that for this app. as well, but I read somewhere that IIS had to be switched to 5.0 Isolation Mode for Tomcat. Since this would've have affected some existing application pools this option was unavailable.
I know this is a lot of information, but I'm just looking for a good starting point to setup a domain name for Apache and Tomcat. Any help would be greatly appreciated.
Thanks,
Brian |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
|
Back to top |
|
|
|
|
|
|