sure, we configure our virtual server like this:
server {
proxy_cache_valid 200 20m;
proxy_max_temp_file_size 0k;
listen 7777;
server_name 10.15.62.104;
location / {
if ($http_user_agent ~ "MSIE [1-6]\.") {
gzip off;
add_header Vary "User-Agent"; }
fastcgi_pass 10.15.62.104:5005;
fastcgi_intercept_errors off;
include fastcgi_params;
fastcgi_pass_header Authorization;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
we are using Flup, is this problem has something to do with Flup?
use = egg:Flup#fcgi_thread
thanks for your help
On Thu, May 12, 2011 at 2:12 AM, guillermo cruz <[email protected]>wrote:
> 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.
>
--
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.