On Mon, Jul 7, 2008 at 6:18 PM, Shannon -jj Behrens <[EMAIL PROTECTED]> wrote: > Ugh, looking at request.environ, Varnish is giving me > HTTP_X_FORWARDED_FOR. Looking at my old Aquarium code, it respected > X_FORWARDED_HOST. Looking at Paste's proxy middleware, I see that it > looks for X-Forwarded-Server. Gees, am I confused! Can someone lend > me a clue?
It turned out that I just needed to follow the Cookbook recipe a little bit more closely: http://wiki.pylonshq.com/display/pylonscookbook/Running+Pylons+with+NGINX The trick is configuring Nginx with: proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; Once you do this, you don't even need to use Paste's proxy middleware. Nginx itself will setup the Host header correctly. I'm still not sure why that recipe configures so many buffer sizes. When I read things like that, it makes me wonder why they're necessary and whether Nginx's own defaults are actually broken. I also wonder if those settings are even appropriate for my situation. Happy Hacking! -jj -- It's a walled garden, but the flowers sure are lovely! http://jjinux.blogspot.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
