Could you copy and paste your nginx configuration?. Are you using Flup? On 11 May 2011 10:34, riquelme roman <[email protected]> wrote:
> Hi, guillermo, > > Thanks very much for your reply, > > I haven't try this solution because I write absolute URL path directly in > templates instead of using h.url. But it still can't fix the paginator URL > problem, > > I'm sure it's a nginx configuration problem, because when I use paster as > server, it works right, but when I use fastcgi+nginx, it goes wrong. And if > we use fastcgi+Apache, it's also right. Maybe Apache allows rewrite > > > On Wed, May 11, 2011 at 2:10 AM, guillermo cruz <[email protected]>wrote: > >> >> Riquelme, >> >> Have you tried adding the qualified parameter to url()? >> >> Example: >> >> h.url(controller="aaa",action="bbb",qualified=True) >> >> This will print the absolute URL path >> >> >> On 10 May 2011 09:00, riquelme roman <[email protected]> wrote: >> >>> Hi, everyone, >>> >>> When I deploy my pylons project wtih nginx and fastcgi, I find a url >>> rewriting problem caused by url_for/url function. >>> for example, >>> there is the template rendered by "foo/bar" (controller=foo, >>> action=bar) contians a link such as >>> "h.url(controller="aaa",action="bbb")", if I click the link, it will >>> bring me to the url "foo/bar/aaa/bbb", >>> >>> and if you use paginator, for example, it will generate links such as >>> "foo/bar?page=1", but when I click other links, it will redirect me to >>> "foo/bar/foo/bar?page=2", >>> >>> I think it may be some nginx configuration problems, such as >>> fastcgi_params, >>> >>> Thanks in advance >>> >>> -- >>> 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. >>> >>> >> -- >> 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. >> > > -- > 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. > -- 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.
