Solved

how to configure virtual host in tomcat 4.x

Posted on 2006-11-13
2
192 Views
Last Modified: 2010-03-04
Hi Guys

I had tomcat 5.x set up on my computer but for compatibilty issues wth the production server we are de-grading our servers to 4.x

now would you guys please help me in setting up virtual host in version 4.x

In tomcat 5.x  I had the virtual hosting configuration as follows, i tried the same in 4.x but it doesnt work

-----------------------------

<Host name="localhost" appBase="" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
     <Context path ='' docBase= 'C:\svn_chapters\trunk\Tomcat\webapps\chapters' debug='0' />    
</Host>

<Host name="newccim.woody.com" appBase="" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
     <Context path ='' docBase= 'C:\svn_ccim\trunk\Tomcat\webapps\ccim' debug='0' />
</Host>



0
Comment
Question by:huzefaq
  • 2
2 Comments
 
LVL 6

Accepted Solution

by:
bpeterse earned 500 total points
ID: 17942490
We're running on 4.1.3 on Solaris and it appears to contain a bit more:      

<Host className="org.apache.catalina.core.StandardHost" appBase="{your_app_base}" autoDeploy="true" configClass="org.apache.cata
lina.startup.ContextConfig" contextClass="org.apache.catalina.core.StandardContext" debug="0" deployXML="true" errorReportValveClass="org
.apache.catalina.valves.ErrorReportValve" liveDeploy="true" mapperClass="org.apache.catalina.core.StandardHostMapper" name="{your_FQDN}" unpackWARs="true">
        <Valve className="org.apache.catalina.valves.AccessLogValve" debug="0" directory="logs/access" resolveHosts="false" suffix=".txt"
 prefix="{app_name_access.}" pattern="%h %l %u %t &quot;%r&quot; %s %b" fileDateFormat="yyyy-MM-dd" rotatable="true"/>
      <Alias>{your_app_alias}</Alias>
</Host>


The hierarchy of elements is as follows - top to bottom (don't forget your closing elements):

<Server>
 <JNDI> (if needed)
 <Service>
  <Connector>
   <Engine>
    <Listener> global
    <Valve> global
    <Realm> global
    <Logger> global
     <Host> default
      <Context> default
     <Host(s)> defined
      <Valve>
      <Logger>
0
 
LVL 6

Expert Comment

by:bpeterse
ID: 17942503
Perhaps you can access the admin GUI to set it up through that - in 4.x I believe the admin gui was included in the distribution.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now