Re: Tomcat Configuration Question

Aaron Johnson <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <[email protected]>
Hi Zgur,

> Does anybody know how to configure tomcat for different domains? For
> example, domain1's /servlet path will be different from domain2's
> /servlet path.

If you're interested in Tomcat administration, you might wanna check out the
lists that jakarta maintains for Tomcat administration
([email protected]), but to answer your question...
for each domain you'd setup a <Host> in server.xml:

 <Host name="domain1.com" debug="5" appBase="/usr/hosts/domain1.com">
        <Context path="" docBase="/usr/hosts/domain1.com" />
      <Alias>www.domain1.com</Alias>
 </Host>

 <Host name="domain2.com" debug="5" appBase="/usr/hosts/domain2.com">
        <Context path="" docBase="/usr/hosts/domain2.com" />
      <Alias>www.domain2.com</Alias>
 </Host>

Each servlet is then managed in the WEB-INF/web.xml of each domain.

hth,

AJ

Aaron Johnson
[email protected]
http://cephas.net/blog/

___________________________________________________________________________
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.