Hi rick, I replied on your post, I hope that will help you.
http://groups.google.com/group/web2py/browse_thread/thread/3c5d897149a3f1eb/679bdb2954ffec15#679bdb2954ffec15 On Feb 24, 1:41 am, rick <[email protected]> wrote: > Hi Ahmed, > > Can you share with us how you got web2py running on nginx with > fastcgi? > > brgds > > On Feb 23, 2:12 pm, Ahmed Sameh <[email protected]> wrote: > > > > > Hi All, > > > I have configured web2py to work with NGINX through FCGI, and > > everything works fine except for routes.py. > > > I am using routes.py to redirect various sub domains to their > > applications. > > > I have compared between the output of the request object in the case > > of using CherryPy and in the case of using FCGI. > > I found that the difference is in the HTTP_REFERER field, so I tried > > to solve this with NGINX, but It hasn't been solved. > > > So, I tried another solution which is setting the HTTP_HOST variable > > to HTTP_REFERER from NGINX using server_name_in_redirect off , So the > > next step is forcing web2py rewrite module to use HTTP_HOST instead of > > HTTP_REFERER, which I couldn't DO. > > > So, Is there anyone can help me to force web2py rewrite module to use > > HTTP_HOST instead of HTTP_REFERER > > or has another solution to the problem without using NGINX rewrite > > rules, as I prefer to do it from routes.py. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.

