You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Anton Veretennikov <an...@gmail.com> on 2008/11/19 12:34:20 UTC

Wicket 1.3.5 behind a front-end proxy

Hi,

http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html
shows this configuration:

<VirtualHost ordering.company.com>
  ProxyPass / http://appserver.company.com:8080/ordering/
  ProxyPassReverse / http://appserver.company.com:8080/ordering/
  # Apache 2.2+ only
  ProxyPassReverseCookiePath /ordering /
</VirtualHost>

as impossible until getApplicationSettings().setContextPath("/");
But it says in 1.3 it must work because it uses relative paths.
My experience shows that <contextPath> is still added in URL in links
and I don't know why.

Was anyone successfull in deploing Wicket 1.3.5 when Tomcat is used by
Apache through mod_proxy?
If yes, please, send me example of configuration. What I need to do in web.xml?

Thank you,
Tony.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket 1.3.5 behind a front-end proxy

Posted by Anton Veretennikov <an...@gmail.com>.
> What is the problem you are having, we use mod_proxy in several environments
> with wicket / tomcat.
>
> Jeremy

I have several apps on one hosting and several domains (aliases) that must
be directly connected to corresponding Web App/.

Configuration is this:

ServerAlias wicket.ru
ProxyPass /stats/ !
ProxyPass /webmail/ !
ProxyPass /lxadmin/ !
ProxyPass / ajp://localhost:8858/WicketRu/
ProxyPassReverse / ajp://localhost:8858/WicketRu/
ProxyPassReverseCookiePath /WicketRu /

The problem is with mapping domain alias directly to Web Application so that
context name is invisible. Index page is shown but Links still contain
contex name.
Test: open wicket.ru and click it's title it shows

HTTP Status 404 - /WicketRu/WicketRu/
type Status report
message /WicketRu/WicketRu/
description The requested resource (/WicketRu/WicketRu/) is not available.
Apache Tomcat/6.0.18

Filter mapping is

  <filter-mapping>
    <filter-name>wicket.ru</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>

Wicket 1.3.5 is used.

Tony.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket 1.3.5 behind a front-end proxy

Posted by Jeremy Levy <je...@meetmoi.com>.
What is the problem you are having, we use mod_proxy in several environments
with wicket / tomcat.

Jeremy

On Wed, Nov 19, 2008 at 7:31 AM, Martin Tilma <m....@func.nl> wrote:

> Hello Anton,
>
> Have a look at:
> http://tomcat.apache.org/tomcat-6.0-doc/config/http.html#Proxy%20Support
>
> maybe this helps?
>
> Regards,
>
> Martin
>
>
>  Hi,
>>
>> http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html
>> shows this configuration:
>>
>> <VirtualHost ordering.company.com>
>>  ProxyPass / http://appserver.company.com:8080/ordering/
>>  ProxyPassReverse / http://appserver.company.com:8080/ordering/
>>  # Apache 2.2+ only
>>  ProxyPassReverseCookiePath /ordering /
>> </VirtualHost>
>>
>> as impossible until getApplicationSettings().setContextPath("/");
>> But it says in 1.3 it must work because it uses relative paths.
>> My experience shows that <contextPath> is still added in URL in links
>> and I don't know why.
>>
>> Was anyone successfull in deploing Wicket 1.3.5 when Tomcat is used by
>> Apache through mod_proxy?
>> If yes, please, send me example of configuration. What I need to do in
>> web.xml?
>>
>> Thank you,
>> Tony.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> --
> Martin Tilma
> Func. Internet Integration
> W http://www.func.nl
> T +31 20 4230000
> F +31 20 4223500
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Jeremy Levy

See my location in real-time:
http://seemywhere.com/jeremy

Right now we are paying a $2,500 referral fee for any full-time hire we make
and keep for 90 days.  We're looking for Java Developers and Marketers with
Internet marketing experience.   You can earn this fee if your referral
leads directly to us hiring one of these people.  Call or email me for
details.

Re: Wicket 1.3.5 behind a front-end proxy

Posted by Martin Tilma <m....@func.nl>.
Hello Anton,

Have a look at: 
http://tomcat.apache.org/tomcat-6.0-doc/config/http.html#Proxy%20Support

maybe this helps?

Regards,

Martin

> Hi,
> 
> http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html
> shows this configuration:
> 
> <VirtualHost ordering.company.com>
>   ProxyPass / http://appserver.company.com:8080/ordering/
>   ProxyPassReverse / http://appserver.company.com:8080/ordering/
>   # Apache 2.2+ only
>   ProxyPassReverseCookiePath /ordering /
> </VirtualHost>
> 
> as impossible until getApplicationSettings().setContextPath("/");
> But it says in 1.3 it must work because it uses relative paths.
> My experience shows that <contextPath> is still added in URL in links
> and I don't know why.
> 
> Was anyone successfull in deploing Wicket 1.3.5 when Tomcat is used by
> Apache through mod_proxy?
> If yes, please, send me example of configuration. What I need to do in web.xml?
> 
> Thank you,
> Tony.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 


-- 
Martin Tilma
Func. Internet Integration
W http://www.func.nl
T +31 20 4230000
F +31 20 4223500

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket 1.3.5 behind a front-end proxy

Posted by Roman Zechner <ro...@liland.at>.
Maybe this is related to servlet mapping?

http://cwiki.apache.org/WICKET/best-practices-and-gotchas.html#BestPracticesandGotchas-WicketServletMapping

Roman

Anton Veretennikov schrieb:
>> To get Apache 2.2 to proxy around Wicket, I have the following defined:
>>
>> <IfDefine PROXY>
>>        ProxyPass                       /
>> http://localhost:8080/cware/
>>        ProxyPassReverse                /
>> http://localhost:8080/cware/
>>        ProxyPassReverseCookieDomain    localhost       .laccetti.com
>>        ProxyPassReverseCookiePath      /cware          /
>> </IfDefine>
>>
>> Nothing special required in the web.xml, Tomcat doesn't know that it is
>> being proxied, etc.
>>
>> HTH,
>>
>> Mike
>>     
>
> My configuration is about the same.
>
> ServerAlias wicket.ru
> ProxyPass /stats/ !
> ProxyPass /webmail/ !
> ProxyPass /lxadmin/ !
> ProxyPass                                  /
> ajp://localhost:8858/WicketRu/
> ProxyPassReverse                      /       ajp://localhost:8858/WicketRu/
> ProxyPassReverseCookiePath     /WicketRu             /
>
> Only AJP protocol is different, cookies work OK - domain and path are
> set correctly,
> session id is not generated again after every GET.
>
> I'll repeat the problem:
> Application is WicketRu. It works correctly when accessed through full URL.
> Alias is "wicket.ru"
> http://wicket.ru opens. But links don't work.
> "wicket.ru" on the top is a Link with onClick() and
> setResponsePage(Index.class).
> Click on it shows "404" with ***strange*** ***double**** "WicketRu".
>
> I think something wrong with relative path.
> Wicket 1.3.5
>
> Tony.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket 1.3.5 behind a front-end proxy

Posted by Anton Veretennikov <an...@gmail.com>.
Resolved. Hosting provider did something.

Thank you all.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket 1.3.5 behind a front-end proxy

Posted by Anton Veretennikov <an...@gmail.com>.
> To get Apache 2.2 to proxy around Wicket, I have the following defined:
>
> <IfDefine PROXY>
>        ProxyPass                       /
> http://localhost:8080/cware/
>        ProxyPassReverse                /
> http://localhost:8080/cware/
>        ProxyPassReverseCookieDomain    localhost       .laccetti.com
>        ProxyPassReverseCookiePath      /cware          /
> </IfDefine>
>
> Nothing special required in the web.xml, Tomcat doesn't know that it is
> being proxied, etc.
>
> HTH,
>
> Mike

My configuration is about the same.

ServerAlias wicket.ru
ProxyPass /stats/ !
ProxyPass /webmail/ !
ProxyPass /lxadmin/ !
ProxyPass                                  /
ajp://localhost:8858/WicketRu/
ProxyPassReverse                      /       ajp://localhost:8858/WicketRu/
ProxyPassReverseCookiePath     /WicketRu             /

Only AJP protocol is different, cookies work OK - domain and path are
set correctly,
session id is not generated again after every GET.

I'll repeat the problem:
Application is WicketRu. It works correctly when accessed through full URL.
Alias is "wicket.ru"
http://wicket.ru opens. But links don't work.
"wicket.ru" on the top is a Link with onClick() and
setResponsePage(Index.class).
Click on it shows "404" with ***strange*** ***double**** "WicketRu".

I think something wrong with relative path.
Wicket 1.3.5

Tony.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE: Wicket 1.3.5 behind a front-end proxy

Posted by Michael Laccetti <mi...@s2g.ca>.
To get Apache 2.2 to proxy around Wicket, I have the following defined:

<IfDefine PROXY>
	ProxyPass                       /
http://localhost:8080/cware/
	ProxyPassReverse                /
http://localhost:8080/cware/
	ProxyPassReverseCookieDomain    localhost       .laccetti.com
	ProxyPassReverseCookiePath      /cware          /
</IfDefine>

Nothing special required in the web.xml, Tomcat doesn't know that it is
being proxied, etc.

HTH,

Mike

> -----Original Message-----
> From: Anton Veretennikov [mailto:anton.veretennikov@gmail.com]
> Sent: November-19-08 6:34 AM
> To: users@wicket.apache.org
> Subject: Wicket 1.3.5 behind a front-end proxy
> 
> Hi,
> 
> http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html
> shows this configuration:
> 
> <VirtualHost ordering.company.com>
>   ProxyPass / http://appserver.company.com:8080/ordering/
>   ProxyPassReverse / http://appserver.company.com:8080/ordering/
>   # Apache 2.2+ only
>   ProxyPassReverseCookiePath /ordering /
> </VirtualHost>
> 
> as impossible until getApplicationSettings().setContextPath("/");
> But it says in 1.3 it must work because it uses relative paths.
> My experience shows that <contextPath> is still added in URL in links
> and I don't know why.
> 
> Was anyone successfull in deploing Wicket 1.3.5 when Tomcat is used by
> Apache through mod_proxy?
> If yes, please, send me example of configuration. What I need to do in
> web.xml?
> 
> Thank you,
> Tony.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org