|
|
 |
| Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Apache Tomcat section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

May 14th, 2004, 04:39 AM
|
|
Registered User
|
|
Join Date: Oct 2003
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Server.xml: how to set up a virtual host
I need to be able to set up virtual hosts. We have one IP-address, but have several domain-names that are served from the same Tomcat server. In the book in chapter 19 there is an example how to configure this. I can set the appbase to another directory and that works. Tomcat is installed in another directory than /Library/Tomcat. Here's the code for the server.xml file:
Code:
<Engine name="Standalone" defaultHost="localhost"
appBase="/Library/Tomcat/webapps"
debug="0">
<Host name="europa.dom" debug="0"
appbase="/volumes/websites/europa.dom/webapps" unpackWARs="true">
<Context path="" docBase="ROOT" debug="0" />
</Host>
</Engine>
Opening localhost pages works fine, but opening europa.dom-pages doesn't work. Do I need to set something else to get this to work? Am I doing something wrong here?
Btw: I'm working on a Mac OSX 10.3.3, Tomcat 5.0.24, but need to do the same on W2K, Tomcat 4.1.24. On both machines Apache is not running.
|

August 10th, 2004, 02:38 PM
|
|
Friend of Wrox
|
|
Join Date: Jul 2004
Location: , , .
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Im guessing, but you could try using the ip instead of the domain name, I know you should be able to use the domain, just an idea
|

August 11th, 2004, 12:34 AM
|
|
Friend of Wrox
|
|
Join Date: Jul 2004
Location: , , India.
Posts: 345
Thanks: 0
Thanked 1 Time in 1 Post
|
|
You need to look into the Server.xml file for the host & port settings.
Could you see some setup, I am not much familiar with Mac OS
<Server port="8005" shutdown="SHUTDOWN" debug="0">
<Service name="Tomcat-Standalone">
The link will help u much to setup the TOMCAT
http://www.coreservlets.com/Apache-T...figured-Tomcat
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |