proxy_set_header Host $host; That should do the trick.
Kyle Terry | www.kyleterry.com On Sun, Jan 23, 2011 at 9:22 PM, Chris McDonough <chr...@plope.com> wrote: > Have nginx pass through the Host header to Pyramid. The right URLs will > be generated. > > - C > > On Sun, 2011-01-23 at 15:35 -0800, gins...@gmail.com wrote: > > Hi! > > static_url() generates a fully qualified URL for a static asset. But > > for applications behind of nginx acting as reverse proxy, I need a > > relative URL, without the hostname and port. For example the hostname > > generated in the url is 127.0.0.1, and not the real hostname. > > Must be a function generating the relative URL. > > Regards!! > > Gins > > > > > -- > You received this message because you are subscribed to the Google Groups > "pylons-devel" group. > To post to this group, send email to pylons-devel@googlegroups.com. > To unsubscribe from this group, send email to > pylons-devel+unsubscr...@googlegroups.com<pylons-devel%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/pylons-devel?hl=en. > > -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe from this group, send email to pylons-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-devel?hl=en.