You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Pablo Ruggia <pr...@gmail.com> on 2006/04/17 21:12:40 UTC

Problem With Application Behind Apache

Hi !!
My application works fine if I access it directly from tomcat. But if I put
it behind an apache, it gets the wrong urls when linking a page, it doesn't
use the domain name, it uses the tomcat net direction. How can I change the
base url so that tapestry uses this instead of the tomcat direction.

Thanks !!!

Re: Problem With Application Behind Apache

Posted by James Carman <ja...@carmanconsulting.com>.
Check out the docs ofr the AJP connector:

http://tomcat.apache.org/tomcat-5.5-doc/connectors.html


> Since we're on the topic, does anyone know the pros and cons of the proxy
> approach vs the mod_jk approach?
>


James Carman, President
Carman Consulting, Inc.


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Problem With Application Behind Apache

Posted by Matt Welch <mw...@ptc.com>.
Since we're on the topic, does anyone know the pros and cons of the proxy
approach vs the mod_jk approach?

RE: Problem With Application Behind Apache

Posted by James Carman <ja...@carmanconsulting.com>.
No, I use proxies.  

-----Original Message-----
From: Adam Zimowski [mailto:zimowski74@gmail.com] 
Sent: Monday, April 17, 2006 3:32 PM
To: Tapestry users
Subject: Re: Problem With Application Behind Apache

I'm using mod_jk2 to connect Apache and Tomcat. Both point to same
root directory and works without problems. Are you using mod_jk2 ?


On 4/17/06, James Carman <ja...@carmanconsulting.com> wrote:
> Step 4:
>
> http://tomcat.apache.org/tomcat-5.5-doc/proxy-howto.html
>
>
>
> -----Original Message-----
> From: James Carman [mailto:james@carmanconsulting.com]
> Sent: Monday, April 17, 2006 3:16 PM
> To: 'Tapestry users'
> Subject: RE: Problem With Application Behind Apache
>
> Are you using a ProxyPass and ProxyPassReverse?  You have to make sure
your
> server.xml file tells your webapp what the actual server name is.  On the
> proxy Connector set proxyName="your server name".
>
> -----Original Message-----
> From: Pablo Ruggia [mailto:pruggia@gmail.com]
> Sent: Monday, April 17, 2006 3:13 PM
> To: Tapestry users
> Subject: Problem With Application Behind Apache
>
> Hi !!
> My application works fine if I access it directly from tomcat. But if I
put
> it behind an apache, it gets the wrong urls when linking a page, it
doesn't
> use the domain name, it uses the tomcat net direction. How can I change
the
> base url so that tapestry uses this instead of the tomcat direction.
>
> Thanks !!!
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Problem With Application Behind Apache

Posted by Adam Zimowski <zi...@gmail.com>.
I'm using mod_jk2 to connect Apache and Tomcat. Both point to same
root directory and works without problems. Are you using mod_jk2 ?


On 4/17/06, James Carman <ja...@carmanconsulting.com> wrote:
> Step 4:
>
> http://tomcat.apache.org/tomcat-5.5-doc/proxy-howto.html
>
>
>
> -----Original Message-----
> From: James Carman [mailto:james@carmanconsulting.com]
> Sent: Monday, April 17, 2006 3:16 PM
> To: 'Tapestry users'
> Subject: RE: Problem With Application Behind Apache
>
> Are you using a ProxyPass and ProxyPassReverse?  You have to make sure your
> server.xml file tells your webapp what the actual server name is.  On the
> proxy Connector set proxyName="your server name".
>
> -----Original Message-----
> From: Pablo Ruggia [mailto:pruggia@gmail.com]
> Sent: Monday, April 17, 2006 3:13 PM
> To: Tapestry users
> Subject: Problem With Application Behind Apache
>
> Hi !!
> My application works fine if I access it directly from tomcat. But if I put
> it behind an apache, it gets the wrong urls when linking a page, it doesn't
> use the domain name, it uses the tomcat net direction. How can I change the
> base url so that tapestry uses this instead of the tomcat direction.
>
> Thanks !!!
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Problem With Application Behind Apache

Posted by Pablo Ruggia <pr...@gmail.com>.
Thanks all for your replys.
I did that 4 step in the configuration and worked like a charm.
Many many many thanks !!!!


On 4/17/06, James Carman <ja...@carmanconsulting.com> wrote:
>
> Step 4:
>
> http://tomcat.apache.org/tomcat-5.5-doc/proxy-howto.html
>
>
>
> -----Original Message-----
> From: James Carman [mailto:james@carmanconsulting.com]
> Sent: Monday, April 17, 2006 3:16 PM
> To: 'Tapestry users'
> Subject: RE: Problem With Application Behind Apache
>
> Are you using a ProxyPass and ProxyPassReverse?  You have to make sure
> your
> server.xml file tells your webapp what the actual server name is.  On the
> proxy Connector set proxyName="your server name".
>
> -----Original Message-----
> From: Pablo Ruggia [mailto:pruggia@gmail.com]
> Sent: Monday, April 17, 2006 3:13 PM
> To: Tapestry users
> Subject: Problem With Application Behind Apache
>
> Hi !!
> My application works fine if I access it directly from tomcat. But if I
> put
> it behind an apache, it gets the wrong urls when linking a page, it
> doesn't
> use the domain name, it uses the tomcat net direction. How can I change
> the
> base url so that tapestry uses this instead of the tomcat direction.
>
> Thanks !!!
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>

RE: Problem With Application Behind Apache

Posted by James Carman <ja...@carmanconsulting.com>.
Step 4:

http://tomcat.apache.org/tomcat-5.5-doc/proxy-howto.html



-----Original Message-----
From: James Carman [mailto:james@carmanconsulting.com] 
Sent: Monday, April 17, 2006 3:16 PM
To: 'Tapestry users'
Subject: RE: Problem With Application Behind Apache

Are you using a ProxyPass and ProxyPassReverse?  You have to make sure your
server.xml file tells your webapp what the actual server name is.  On the
proxy Connector set proxyName="your server name".

-----Original Message-----
From: Pablo Ruggia [mailto:pruggia@gmail.com] 
Sent: Monday, April 17, 2006 3:13 PM
To: Tapestry users
Subject: Problem With Application Behind Apache

Hi !!
My application works fine if I access it directly from tomcat. But if I put
it behind an apache, it gets the wrong urls when linking a page, it doesn't
use the domain name, it uses the tomcat net direction. How can I change the
base url so that tapestry uses this instead of the tomcat direction.

Thanks !!!



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


RE: Problem With Application Behind Apache

Posted by James Carman <ja...@carmanconsulting.com>.
Are you using a ProxyPass and ProxyPassReverse?  You have to make sure your
server.xml file tells your webapp what the actual server name is.  On the
proxy Connector set proxyName="your server name".

-----Original Message-----
From: Pablo Ruggia [mailto:pruggia@gmail.com] 
Sent: Monday, April 17, 2006 3:13 PM
To: Tapestry users
Subject: Problem With Application Behind Apache

Hi !!
My application works fine if I access it directly from tomcat. But if I put
it behind an apache, it gets the wrong urls when linking a page, it doesn't
use the domain name, it uses the tomcat net direction. How can I change the
base url so that tapestry uses this instead of the tomcat direction.

Thanks !!!



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org