#8874: problem with URLs on FastCGI after update to 1.0
-------------------------------------+--------------------------------------
          Reporter:  kyprizel        |         Owner:  kyprizel
            Status:  reopened        |     Milestone:  1.2     
         Component:  Core framework  |       Version:  SVN     
        Resolution:                  |      Keywords:          
             Stage:  Accepted        |     Has_patch:  1       
        Needs_docs:  0               |   Needs_tests:  0       
Needs_better_patch:  0               |  
-------------------------------------+--------------------------------------
Comment (by Exe):

 The correct config for nginx. If you uncomment commented strings you fall
 into very strange and scarry bugs(ex. RequestContext will go down or url-
 tag will do strange things). I'm posting it here as I spent 4 days to
 catch all problems with fcgi and solutions in the internet didn't work for
 me.
 {{{

     location / {
         #DO NOT INCLUDE include         /etc/nginx/fastcgi_params;
         fastcgi_param   QUERY_STRING      $query_string;
         fastcgi_param   REQUEST_METHOD    $request_method;
         fastcgi_param   REQUEST_URI       $request_uri;

         fastcgi_param   CONTENT_TYPE      $content_type;
         fastcgi_param   CONTENT_LENGTH    $content_length;

         #DO NO SET fastcgi_param   SCRIPT_NAME       $fastcgi_script_name;
         fastcgi_param   PATH_INFO         $uri;
         fastcgi_param   SERVER_PROTOCOL   $server_protocol;

         fastcgi_param   SERVER_NAME       $server_name;
         fastcgi_param   SERVER_PORT       $server_port;

         fastcgi_param   REMOTE_ADDR       $remote_addr;
         fastcgi_param   REMOTE_PORT       $remote_port;

         fastcgi_pass    unix:/home/exe_messir_net/tmp/fcgi.sock;
     }
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8874#comment:14>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" 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/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to