Solved

how to configure virtual host in tomcat 4.x

Posted on 2006-11-13
2
216 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

726 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