tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trond Hersløv <trond.hers...@gotogate.no>
Subject SV: Tomcat virtualhost bug?
Date Tue, 25 May 2004 15:48:52 GMT
Sorry about that. I'm a freshman and just tried to keep it short and simple
(as I thought I was supposed to).
Anyway - my server.xml:
Have no idea what those listeners and Global naming resourses are doing, but
I'll deal with it later ( I hope)
Turning autodeploy off didn't help :-(

Thanks for helping me out.

<Server port="8005" shutdown="SHUTDOWN" debug="0">
  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
            debug="0"/>
  <Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
            debug="0"/>
  <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">
    </Resource>
    <ResourceParams name="UserDatabase">
      <parameter>
        <name>factory</name>
        <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
      </parameter>
      <parameter>
        <name>pathname</name>
        <value>conf/tomcat-users.xml</value>
      </parameter>
    </ResourceParams>
  </GlobalNamingResources>
  <Service name="Catalina">
    <Connector port="8009" 
               enableLookups="false" redirectPort="8443" debug="0"
               protocol="AJP/1.3" />
    <Engine name="Catalina" defaultHost="uuu.platin.no" debug="0">
      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="catalina_log." suffix=".txt"
              timestamp="true"/>
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
                 debug="0" resourceName="UserDatabase"/>

      <Host name="uuu.platin.no" debug="0" appBase="webapps"
       unpackWARs="true" autoDeploy="false"
       xmlValidation="false" xmlNamespaceAware="false">
        <Logger className="org.apache.catalina.logger.FileLogger"
                 directory="logs"  prefix="uuu" suffix=".txt"
            timestamp="true"/>
	 <Context path="" docBase="en" debug="1" override="true"/>   
      </Host>

      <Host name="www.platin.no" debug="0" appBase="webapps"
       unpackWARs="true" autoDeploy="false"
       xmlValidation="false" xmlNamespaceAware="false">
        <Logger className="org.apache.catalina.logger.FileLogger"
                 directory="logs"  prefix="www" suffix=".txt"
            timestamp="true"/>
	 <Context path="" docBase="tre" debug="1" override="true"/>   
      </Host>

      <Host name="vvv.platin.no" debug="0" appBase="webapps"
       unpackWARs="true" autoDeploy="false"
       xmlValidation="false" xmlNamespaceAware="false">
        <Logger className="org.apache.catalina.logger.FileLogger"
                 directory="logs"  prefix="vvv" suffix=".txt"
            timestamp="true"/>
	 <Context path="" docBase="to" debug="1" override="true"/>   
      </Host>
    </Engine>
  </Service>
</Server>


Trond

-----Opprinnelig melding-----
Fra: QM [mailto:qm300@brandxdev.net]
Sendt: Tuesday, May 25, 2004 15:12
Til: Tomcat Users List
Emne: Re: Tomcat virtualhost bug?


On Tue, May 25, 2004 at 07:16:29AM +0200, Trond Hersl?v wrote:
: I thought everything was fine, BUT then I realized that I could access
app2
: like this: http://test1.athome.no/test2 <http://test1.athome.no/test2> .
: What am I doing wrong?

Perhaps autodeploy is enabled?

If not, read on:


: <Host name="test1.athome.no" ..... appBase"webapps".....>
: .....
: .....
: <Context path=""  docBase="test1" .....>
: </Host>

-but what, specifically, is the "....."?
That's the best part!  =)

Seriously, please post the entire server.xml when possible.
That makes it easier for people to help you, should you have a
server.xml problem.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


**********************************************************************
This email message has been swept by
MIMEsweeper for the presence of computer viruses.
**********************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message