Hello,

Try this:
Back up server.xml,
Delete all sections that are commented out,
change all tags to be on a single line.
Indent the file properly.
Remove the examples context.

Then comment the file by looking through the Docs.

IMPORTANT: You need to have each host serving from a different directory on
your system. I would recommend having

<tomcat_home>/webapps/<domain1>/<path_or_war>
<tomcat_home>/webapps/<domain2>/<path_or_war>

Etc.

Do not leave any apps/paths/wars at a higher level than any others.

Regards,
Andoni.


----- Original Message -----
From: "29djeo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 14, 2003 11:14 PM
Subject: virtual hosts


> I followed the directions for setting up tomcat for virutal hosts:
>
> I added the following to server.xml
>
>       &lt;Host name=&quot;domain1.com&quot; debug=&quot;0&quot;
appBase=&quot;webapps&quot; unpackWARs=&quot;true&quot;&gt;
>         &lt;Alias&gt;www.domain1.com&lt;/Alias&gt;
>         &lt;Logger
className=&quot;org.apache.catalina.logger.FileLogger&quot;
>           directory=&quot;logs&quot; prefix=&quot;domain1.&quot;
suffix=&quot;.log&quot; timestamp=&quot;true&quot;/&gt;
>         &lt;Context path=&quot;&quot; docBase=&quot;domain1
debug=&quot;0&quot; reloadable=&quot;true&quot;/&gt;
>         &lt;Context path=&quot;/test&quot; docBase=&quot;domain1&quot;
debug=&quot;0&quot; reloadable=&quot;true&quot;/&gt;
>       &lt;/Host&gt;
>
> I also removed the default Host name reference to &quot;localhost&quot;.
>
> When I go to http://www.domain1.com I see a blank page and not the
deployed application domain1.  There are also numerous references to
&quot;localhost&quot; in server.xml do these need to be modified to support
multiple domains?
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to