You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Scott Purcell <sp...@vertisinc.com> on 2005/11/21 17:47:31 UTC
Re site problems, here is server.xml
Here is the actual server.xml file:
Server port="8005" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
<Service name="Catalina">
<Connector port="80" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
<!-- Define a Proxied HTTP/1.1 Connector on port 8082 -->
<!-- See proxy documentation for more information about using this. -->
<!--
<Connector port="8082"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" acceptCount="100" connectionTimeout="20000"
proxyPort="80" disableUploadTimeout="true" />
-->
<Engine name="Catalina" defaultHost="localhost">
<Host name="www.mySite.com" appBase="webapps/"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="/mySite" />
</Host>
</Engine>
</Service>
</Server>
-----Original Message-----
From: Hassan Schroeder [mailto:hassan@webtuitive.com]
Sent: Monday, November 21, 2005 10:43 AM
To: Tomcat Users List
Subject: Re: Tomcat 5.5 configure site to web problems
Scott Purcell wrote:
> But after that, I am having more problems. Each time a user goes
> to the site, they get two JSESSIONIDS, and have to click on the
> first buttons two times?
Uh, right. "first buttons"? Sorry, crystal ball doesn't work this
early on Mondays...
> with the entry in the server.xml, I cannot create another site on
> the box and call it with "localhost" or "127.0.0.1" Anyway to get
> around this.
Again, no idea what you mean by the above; it's perfectly possible
to have multiple hosts defined in server.xml, as the doc indicates.
Perhaps if you posted your actual server.xml file (with, *please*,
all the irrelevant comment sections removed!) someone could help...
--
Hassan Schroeder ----------------------------- hassan@webtuitive.com
Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com
dream. code.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Re site problems, here is server.xml
Posted by Hassan Schroeder <ha...@webtuitive.com>.
Scott Purcell wrote:
> <Engine name="Catalina" defaultHost="localhost">
>
> <Host name="www.mySite.com" appBase="webapps/"
> unpackWARs="true" autoDeploy="true"
> xmlValidation="false" xmlNamespaceAware="false">
> <Context path="" docBase="/mySite" />
>
> </Host>
> </Engine>
So, what's the issue? You have a defaultHost in your Engine element
that doesn't exist; add a Host element for it.
Note: it's no longer recommended to put your Context elements in
server.xml -- see the docs for alternatives.
--
Hassan Schroeder ----------------------------- hassan@webtuitive.com
Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com
dream. code.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org