use Apache VirtualHosts ..a fairly lightweight HTTP server 
OR
but if you want to use only tomcat
if your URLs will always map to TomcatServer:TomcatPort
and if you configure the default catalina connector port for 80 you will only 
need the TomcatServer
then map your webapp relative path for tomcat to the webappServletName
http://host/MyApp/MyServlet

so All refs for MyServlet go to some-servlet-name-that-tomcat-uses-internally
    <servlet>
        <servlet-name>
            some-servlet-name-that-tomcat-uses-internally
        </servlet-name>
        <servlet-class>
            dir1.dir2.dir3.MyServlet
        </servlet-class>
    </servlet>

   <servlet-mapping>
        <servlet-name>
            some-servlet-name-that-tomcat-uses-internally
        </servlet-name>
        <url-pattern>
            /MyServlet
        </url-pattern>
    </servlet-mapping>

HTH,
M-
--------------------------------------------------------------------------- 
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
--------------------------------------------------------------------------- 
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.
----- Original Message ----- 
From: "EDMOND KEMOKAI" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Wednesday, March 21, 2007 9:02 AM
Subject: Re: Who do I have to pay (and how much) to...


> You can use mod_jk (Tomcat connector) with apache to do virtual hosting.
> As for who to pay? Well the mailing list is for technical help not
> solicitations.
> 
> On 3/21/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:
>>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Matt,
>>
>> Matthew wrote:
>> > ...get an answer to the following:
>> >
>> > For Tomcat 5.5.20, how do I configure virtual hosts using a context.xml
>> > file in the META-INF directory (of each domain's .war file) as opposed
>> > to having to do the following in server.xml....
>> >
>> > <Host name="domain.com" appBase="" .....>
>> >    <Context path="" docBase="webapps/domain"/>
>> > </Host>
>>
>> You cannot configure virtual hosts in context.xml files.
>>
>> If you want to do this, you'll probably have to write a ton of code to
>> make Tomcat work in a different way and install that into the server's
>> libraries. It's far easier to configure virtual hosts using the
>> configuration the way it was intended.
>>
>> - -chris
>>
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.7 (MingW32)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>>
>> iD8DBQFGASsp9CaO5/Lv0PARArvgAJ4sDL50G/IBoYDoiZ1fP7hgRUU/0QCgmhdU
>> coocpO6K4Vfk9b3z389+zng=
>> =fmuO
>> -----END PGP SIGNATURE-----
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> "talk trash and carry a small stick."
> PAUL KRUGMAN (NYT)
>

Reply via email to