Results 1 to 5 of 5
  1. #1
    vinoopraj is offline Member
    Join Date
    Mar 2009
    Posts
    15
    Rep Power
    0

    Default tomcat virtual hosting ...

    Hi ..all we are new to tomcat 5.5 configuration just having a single hosting working knowledge, now we want to add another host using name based, we surfed and did the changes in

    server.xml, catalina etc...

    server deployed the two wars correctly but the second host not run properly ... the page cant display page is shown..

    its very urgent .. will be thankful if u spend your valuable time for us...

  2. #2
    serjant's Avatar
    serjant is offline Senior Member
    Join Date
    Jun 2008
    Location
    Ukraine,Zaporozhye
    Posts
    487
    Rep Power
    7

    Default

    Show me the servers.xml host tags content, What os do you use?

  3. #3
    vinoopraj is offline Member
    Join Date
    Mar 2009
    Posts
    15
    Rep Power
    0

    Default reServer .xml ..

    thanks for u r reply..

    hi.. this is my .. server.xml..

    <Server port="8005" shutdown="SHUTDOWN">


    <Listener className="org.apache.catalina.core.AprLifecycleLi stener" />
    <Listener className="org.apache.catalina.mbeans.ServerLifecy cleListener" />
    <Listener className="org.apache.catalina.mbeans.GlobalResour cesLifecycleListener" />
    <Listener className="org.apache.catalina.storeconfig.StoreCo nfigLifecycleListener"/>


    <GlobalNamingResources>


    <Environment name="simpleValue" type="java.lang.Integer" value="30"/>

    <Resource name="UserDatabase" auth="Container"
    type="org.apache.catalina.UserDatabase"
    description="User database that can be updated and saved"
    factory="org.apache.catalina.users.MemoryUserDatab aseFactory"
    pathname="conf/tomcat-users.xml" />

    </GlobalNamingResources>


    <Service name="Catalina">


    <Connector
    port="8080" maxHttpHeaderSize="8192"
    maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
    enableLookups="false" redirectPort="8443" acceptCount="100"
    connectionTimeout="20000" disableUploadTimeout="true" debug="0"/>

    <Connector port="8009"
    enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />


    <Engine name='Catalina' defaultHost='site1' debug='0'>

    <Host name="site1" appBase="/home/websites/site1/webapps"
    unpackWARs="true" autoDeploy="true" >
    <Context path='' docBase='ROOT' debug='0'/>
    <Context path='/MaryMartin' docBase='MaryMartin.war' debug='0' />

    <Valve className='org.apache.catalina.valves.AccessLogVal ve'
    directory='/home/websites/site1/logs'
    prefix='site1_access.'
    suffix='.log'
    pattern='common'/>
    <Logger className='org.apache.catalina.logger.FileLogger'
    directory='/home/websites/site1/logs'
    prefix='site1_access'
    suffix='.log'
    timestamp='true'/>



    </Host>

    </Engine>

    </Service>

    </Server>

  4. #4
    serjant's Avatar
    serjant is offline Senior Member
    Join Date
    Jun 2008
    Location
    Ukraine,Zaporozhye
    Posts
    487
    Rep Power
    7

    Default

    But in your server.xml file as i see you configured only one host

  5. #5
    vinoopraj is offline Member
    Join Date
    Mar 2009
    Posts
    15
    Rep Power
    0

    Default

    Quote Originally Posted by serjant View Post
    But in your server.xml file as i see you configured only one host
    ya ... i want like that another.. tooo ... i want to change the localhost to site and site2...etc...

    i am using .. windows XP and windows 2000 proffessional..

Similar Threads

  1. tomcat virtual hosting ...
    By vinoopraj in forum Java Servlet
    Replies: 1
    Last Post: 03-18-2009, 09:18 AM
  2. Hosting an Applet on a website which reads a textfile
    By Bomber_Will in forum Java Applets
    Replies: 3
    Last Post: 01-17-2009, 06:48 PM
  3. The hosting company must have the frameworks?
    By gilbertoalbino in forum Web Frameworks
    Replies: 2
    Last Post: 10-19-2008, 03:51 AM
  4. Tomcat In Eclipse - Sysdeo Tomcat Plug-in
    By JavaForums in forum Eclipse
    Replies: 1
    Last Post: 02-13-2008, 10:33 AM
  5. web design software(Domain Name and web hosting for sales)
    By Bettypeng in forum Reviews / Advertising
    Replies: 0
    Last Post: 01-22-2008, 08:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •