tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "29djeo" <29d...@michaelstarkie.com>
Subject virtual hosts
Date Sun, 14 Dec 2003 23:14:33 GMT
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?
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message