to deploy 2 virtual hosts in Tomcat 5.5.29 (no Apache) what more than
the server.xml file below and a context.xml per each host in Catalina do
you need to set up?
Where do I set path, like for "/"? Alright in the context file (see below)?
server.xml:
<?xml version="1.0" encoding="UTF-8"?>
<Server port="8005" shutdown="SHUTDOWN">
<GlobalNamingResources>
<!-- Used by Manager webapp -->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
<Service name="Catalina">
<Connector port="80" />
<Engine name="Catalina" defaultHost="kron">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase" />
<Host name="medpsy" appBase="/home/webbplatser/medpsy.no" />
<Host name="kron" appBase="/home/webbplatser/kron.no" />
</Engine>
</Service>
</Server>
Fragment context settings in /Catalina/kron/ROOT.xml (similar for the
other site:
<?xml version="1.0" encoding="UTF-8"?>
<Context
docBase="/home/webbplatser/kron.no/ROOT"
path="/"
reloadable="true"
workDir="work/Catalina/kron/_">
<Listener className="org.apache.catalina.startup.TldConfig"/>
</Context>:
This set up doesn't serve a pages physically put in any of the ROOT
folders of the sites. I get blank pages.
GUIDES?
Anyone that can point to a guide that focuses only on the steps
necessary to configure Tomcat 5.5.x for 2 or more virtual hosts?
Preferably without involvement with Apache.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]