"achandra" <[EMAIL PROTECTED]> wrote:

> i heard that embedded tomcat only parse the context
> not the virtual host
> is it true ?

Yes, that's true. Read the post:

> "Raffael Herzog" <[EMAIL PROTECTED]> wrote:
> 
> > I had a whole website in a single EAR, which should be accessible via
> > http://www.somedomain.com. Using tomcat alone gave me a URL to access
> > the web like http://www.somedomain.com/my_app. So I just used the
> > proxy module of Apache for a name virtual server:
> >
> > <VirtualHost *>
> >     ServerName www.somedomain.com
> >     DocumentRoot /pub/httpd/htdocs
> >
> >     ProxyRequests on
> >     ProxyPass / http://localhost:8080/my_app/
> >     ProxyPassReverse / http://localhost:8080/my_app/
> > </VirtualHost>
> >
> > You can also make this proxy caching, so that not every request gets
> > forwarded to tomcat, if you like.

Apache forwards all requests to the virtual host www.somedomain.com to
tomcat running on the localhost on port 8080 to the application
my_app. Any address that is returned will be translated from
localhost:8080/my_app to www.somedomain.com.


-- 
    (o_     Raffael Herzog
    //\    [EMAIL PROTECTED]
    V_/_
May the penguin be with you!


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]

Reply via email to