[web2py] Re: web2py ajax failing when behind reverse proxy

2013-11-15 Thread Anthony
Also, note that if you call redirect(..., client_side=True), web2py will send the redirect URL in a special "web2py-redirect-location" HTTP header, which will be read by the JS code in web2py.js. Also, when web2py makes an Ajax call to load a component, it passes the URL of the parent page in a

[web2py] Re: web2py ajax failing when behind reverse proxy

2013-11-15 Thread DeanK
Awesome. I was trying to use mod_substitute to replace the url in the data tag but things weren't loading right. Anthony's suggestions worked. I'm going to do some more extensive testing, but at first glance it looks like that did the trick. Thanks! On Friday, November 15, 2013 10:44:34 A

[web2py] Re: web2py ajax failing when behind reverse proxy

2013-11-15 Thread Anthony
Does it work if you add the following to your proxy_html.conf file: ProxyHTMLLinks div data-w2p_remote See http://httpd.apache.org/docs/current/mod/mod_proxy_html.html#proxyhtmllinks and http://apache.webthing.com/svn/apache/filters/proxy_html/proxy_html.conf. Anthony On Thursd

[web2py] Re: web2py ajax failing when behind reverse proxy

2013-11-15 Thread Massimo Di Pierro
I opened a ticket about. Clearly storing URLs in data attributes gets ignored by Proxies. On Thursday, 14 November 2013 17:46:42 UTC-6, DeanK wrote: > > I'm having trouble with a web2py site sitting behind an Apache2 reverse > proxy that uses web2py's built in ajax capability. The main domain s