* Panos Konstantinidis <[EMAIL PROTECTED]> [1142 11:42]:
>   Hello more questions about Tomcat.
> 
>   After a few days and changes in the configuration
> files I managed to transfer all web application from
> Resin to Tomcat. What I would like to do now is to
> configure Tomcat to server a url in the form of
> www.mywebapp.com.
> 
>   mywebapp is configured under the /webapps folder. So
> far in order to run it I was doing
> http://localhost/mywebapp but I need to change it. I
> have defined the Context tag to be like:
> 
> <Context path="www.mywebapp.com"
> docBase="C:\Tomcat4.1\webapps\mywebapp" debug="0" />

That's nor right, are you getting confused with <Host> direcives?

Try something like:

-----------------------

        <!-- Paste this under the localhost definition in server.xml -->

        <Host name="www.mywebapps.com" debug="1" appBase="mywebapps" >

                <Alias>www.app1.mywebapps.com</Alias>

                <Valve className="org.apache.catalina.valves.AccessLogValve"
                        directory="logs/mywebapps"      prefix="access." suffix=".log"
                        pattern="common"/>

                <Logger className="org.apache.catalina.logger.FileLogger"
                        directory="logs/mywebapps"      prefix="context." suffix=".log"
                        timestamp="true"/>

        </Host>

-----------------------

and just stick your webapp under

$CATALINA_HOME/mywebapps/ROOT/

 or define other Contexts within this Host ?

I've made a subdirectory under logs too, so it's easier to
find logs for this host when debugging.

-- 
Rasputin :: Jack of All Trades - Master of Nuns

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

Reply via email to