p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > Java > Java Open Source > Apache Tomcat
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 14th, 2004, 04:39 AM
rvw rvw is offline
Registered User
Points: 33, Level: 1
Points: 33, Level: 1 Points: 33, Level: 1 Points: 33, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2003
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old August 10th, 2004, 02:38 PM
Friend of Wrox
Points: 422, Level: 7
Points: 422, Level: 7 Points: 422, Level: 7 Points: 422, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2004
Location: , , .
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old August 11th, 2004, 12:34 AM
Friend of Wrox
Points: 726, Level: 10
Points: 726, Level: 10 Points: 726, Level: 10 Points: 726, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2004
Location: , , India.
Posts: 345
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to gokul_blr Send a message via Yahoo to gokul_blr
Default

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




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
virtual host problem cjp17 BOOK: Professional Search Engine Optimization with PHP: A Dev's Guide to SEO ISBN: 978-0-470-10092-9 1 May 23rd, 2009 06:25 AM
Access sql server from on different host sdagger SQL Server ASP 1 October 29th, 2008 07:14 PM
Send an object from a server-socket to the host? magsto General .NET 0 August 16th, 2005 07:42 AM
Wildcards in Virtual Host angrycat Apache Tomcat 0 December 2nd, 2004 01:33 PM
strange behaviour: session variable/virtual host ahfaich Pro PHP 8 May 12th, 2004 12:53 PM



All times are GMT -4. The time now is 02:01 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc