?
Solved

how to configure virtual host in tomcat 4.x

Posted on 2006-11-13
2
Medium Priority
?
220 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 2000 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

777 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