Re: Make Tomcat serve a URL in the form of www.mywebapp.com

2002-11-28 Thread Panos Konstantinidis
  Hello Andoni,

  yes you are right, I should have done more "manual
reading", it was all there but paradoxically I had not
seen it. Anyway thank you for your time and help I
really appreciate it. It works fine now. All I did was
to add a  tag and a  as a sub-element
to this host.

   Thank you.

 Panos

--- Andoni <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> You need to go up another level in the tags of your
> server.xml.  The
> container which holds your  is the 
> container whose "name="
> attribute is the domain name you want to call from
> your browser.
> 
> As for other names, if you want to have multiple
> Virtual Hosts you can have
> multiple  containers inside the 
> container each with one or
> more  containers.  If on the other had you
> just want  a single
> VHost to be capable of being referred to by several
> names then you can use
> one or more myhost.com tags in your
>  tag alongside your
> contexts.
> 
> Basically though, the long and the short of it is
> that you should do much
> more "manual reading"!!
> 
> HTH,
> 
> Andoni.
> 
> - Original Message -
> From: "Panos Konstantinidis" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, November 28, 2002 11:41 AM
> Subject: Make Tomcat serve a URL in the form of
> www.mywebapp.com
> 
> 
> >   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:
> >
> >  > docBase="C:\Tomcat4.1\webapps\mywebapp" debug="0"
> />
> >
> >   but with no luck. "mywebapp" is registered with
> a
> > DNS server. What if I also want to have other
> > webapplication in the form of:
> www.app1.mywebapp.com,
> > www.app2.mywebapp.com etc?
> >
> >   Any help is appreciated.
> >
> >Thank you.
> >
> > Panos
> >
> > __
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> > http://mailplus.yahoo.com
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
> >
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Re: Make Tomcat serve a URL in the form of www.mywebapp.com

2002-11-28 Thread Rasputin
* 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:
> 
>  docBase="C:\Tomcat4.1\webapps\mywebapp" debug="0" />

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

Try something like:

---





www.app1.mywebapps.com







---

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:   
For additional commands, e-mail: 




Re: Make Tomcat serve a URL in the form of www.mywebapp.com

2002-11-28 Thread Andoni
Hi,

You need to go up another level in the tags of your server.xml.  The
container which holds your  is the  container whose "name="
attribute is the domain name you want to call from your browser.

As for other names, if you want to have multiple Virtual Hosts you can have
multiple  containers inside the  container each with one or
more  containers.  If on the other had you just want  a single
VHost to be capable of being referred to by several names then you can use
one or more myhost.com tags in your  tag alongside your
contexts.

Basically though, the long and the short of it is that you should do much
more "manual reading"!!

HTH,

Andoni.

- Original Message -
From: "Panos Konstantinidis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 28, 2002 11:41 AM
Subject: Make Tomcat serve a URL in the form of www.mywebapp.com


>   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:
>
>  docBase="C:\Tomcat4.1\webapps\mywebapp" debug="0" />
>
>   but with no luck. "mywebapp" is registered with a
> DNS server. What if I also want to have other
> webapplication in the form of: www.app1.mywebapp.com,
> www.app2.mywebapp.com etc?
>
>   Any help is appreciated.
>
>Thank you.
>
> Panos
>
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


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




Make Tomcat serve a URL in the form of www.mywebapp.com

2002-11-28 Thread Panos Konstantinidis
  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:



  but with no luck. "mywebapp" is registered with a
DNS server. What if I also want to have other
webapplication in the form of: www.app1.mywebapp.com,
www.app2.mywebapp.com etc?

  Any help is appreciated.

   Thank you.

Panos

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: