Ivan Sagalaev wrote: > [EMAIL PROTECTED] wrote: > > if settings.APPEND_SLASH and (old_url[1][-1] != '/') and ('.' not > > in old_url[1].split('/')[-1]): > > IndexError: string index out of range > > ---------------------------------------------- > > and in the browse flup shows a simillar bigger... What am I doing > > wrong? :) > > The same thing happens in nginx http server. This is because web server > doesn't pass all the needed environment (query strings, path, etc) to > your app. In nginx you should pass necessary vars manually: > > fastcgi_param PATH_INFO $fastcgi_script_name; > fastcgi_param REQUEST_METHOD $request_method; > fastcgi_param QUERY_STRING $query_string; > fastcgi_param CONTENT_TYPE $content_type; > fastcgi_param CONTENT_LENGTH $content_length; > fastcgi_pass_header Authorization; > > All these $vars are nginx specific. Search cherokee docs how these > values can be accessed. > > P.S. First 5 vars are pretty much essential for working with web and > Authorization is needed if you want to handle HTTP Auth manually in your > code.
and how can I paste these vars to cherokee? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---