You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Michael Plöd <mi...@gmail.com> on 2009/05/24 01:09:27 UTC
AJAX calls not working with mod_proxy
Hi,
I am currently struggling with a very strange behaviour between Wicket
(1.3.4) and my mod_proxy configuration.
The usual calls to BookmarkablePageLinks work perfectly. The same goes
out to resource loading and so on. However, as soon as I want to work
with AjaxFallbackLinks and so on I always get a "Page Expired" page
telling me that the page I requested has expired.
My scenario is as follows:
- I have an Apache 2 Server for static content (images) in the url
www.myhost.com/pictures
- In addition to that I have a Tomcat server hosting my webapp which
should be accessed unter www.myhost.com
The mod_proxy config is as follows:
ProxyPass /pictures !
ProxyPass / ajp://localhost:8009/site-1.0-SNAPSHOT/app/
ProxyPassReverse / ajp://localhost:8009/site-1.0-SNAPSHOT/app/
ProxyPassReverseCookiePath / /site-1.0-SNAPSHOT/app
Any suggestions what I am missing here?
Thanks a lot in advance,
Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: AJAX calls not working with mod_proxy
Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Hi!
This works fine for us:
ProxyPass / http://www.mydomain.com:8080/
ProxyPassReverse / http://www.mydomain.com:8080/
RewriteEngine On
RewriteCond %{SERVER_NAME} !^www\.mydomain\.com
RewriteRule /(.*) http://www.mydomain.com/$1 [redirect=301L]
**
Martin
2009/5/24 James Carman <jc...@carmanconsulting.com>:
> I've never been able to set up a proxied connection to "/". I've
> always had to do a forward to my webapp's URL.
>
> On Sat, May 23, 2009 at 7:09 PM, Michael Plöd <mi...@gmail.com> wrote:
>> Hi,
>> I am currently struggling with a very strange behaviour between Wicket
>> (1.3.4) and my mod_proxy configuration.
>>
>> The usual calls to BookmarkablePageLinks work perfectly. The same goes
>> out to resource loading and so on. However, as soon as I want to work
>> with AjaxFallbackLinks and so on I always get a "Page Expired" page
>> telling me that the page I requested has expired.
>>
>> My scenario is as follows:
>> - I have an Apache 2 Server for static content (images) in the url
>> www.myhost.com/pictures
>> - In addition to that I have a Tomcat server hosting my webapp which
>> should be accessed unter www.myhost.com
>>
>> The mod_proxy config is as follows:
>>
>> ProxyPass /pictures !
>> ProxyPass / ajp://localhost:8009/site-1.0-SNAPSHOT/app/
>> ProxyPassReverse / ajp://localhost:8009/site-1.0-SNAPSHOT/app/
>> ProxyPassReverseCookiePath / /site-1.0-SNAPSHOT/app
>>
>>
>> Any suggestions what I am missing here?
>>
>> Thanks a lot in advance,
>> Mike
>>
>> ---------------------------------------------------------------------
>> 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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: AJAX calls not working with mod_proxy
Posted by James Carman <jc...@carmanconsulting.com>.
I've never been able to set up a proxied connection to "/". I've
always had to do a forward to my webapp's URL.
On Sat, May 23, 2009 at 7:09 PM, Michael Plöd <mi...@gmail.com> wrote:
> Hi,
> I am currently struggling with a very strange behaviour between Wicket
> (1.3.4) and my mod_proxy configuration.
>
> The usual calls to BookmarkablePageLinks work perfectly. The same goes
> out to resource loading and so on. However, as soon as I want to work
> with AjaxFallbackLinks and so on I always get a "Page Expired" page
> telling me that the page I requested has expired.
>
> My scenario is as follows:
> - I have an Apache 2 Server for static content (images) in the url
> www.myhost.com/pictures
> - In addition to that I have a Tomcat server hosting my webapp which
> should be accessed unter www.myhost.com
>
> The mod_proxy config is as follows:
>
> ProxyPass /pictures !
> ProxyPass / ajp://localhost:8009/site-1.0-SNAPSHOT/app/
> ProxyPassReverse / ajp://localhost:8009/site-1.0-SNAPSHOT/app/
> ProxyPassReverseCookiePath / /site-1.0-SNAPSHOT/app
>
>
> Any suggestions what I am missing here?
>
> Thanks a lot in advance,
> Mike
>
> ---------------------------------------------------------------------
> 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