#3414: middleware/common.py and SCGI bug - string index out of range
-----------------------------------------------------------+----------------
          Reporter:  Piotr MaliƄski <[EMAIL PROTECTED]>  |         Owner:  
nobody
            Status:  closed                                |     Milestone:     
   
         Component:  Core framework                        |       Version:  
SVN   
        Resolution:  fixed                                 |      Keywords:     
   
             Stage:  Accepted                              |     Has_patch:  1  
   
        Needs_docs:  0                                     |   Needs_tests:  0  
   
Needs_better_patch:  0                                     |  
-----------------------------------------------------------+----------------
Comment (by Richard Davies <[EMAIL PROTECTED]>):

 Let me quickly explain the logic of the setup that I mentioned in comment
 16 (note that this copies the _standard_ way to set up Rails with
 Lighttpd, it isn't something that I invented myself!).

 Compared to the Django lighttpd config at
 http://www.djangoproject.com/documentation/fastcgi/#lighttpd-setup , the
 directories are "inside out".

 That config has MEDIA_ROOT/MEDIA_URL as a subdirectory of the site on the
 webserver, and uses url rewriting to handle media such as favicon.ico,
 robots.txt, etc. which are expected in the top level or otherwise outside
 the media subdirectory.

 The Rails-style config has MEDIA_ROOT/MEDIA_URL as the root-level
 directory of the site on the webserver, and then connect the error-
 handler-404 to Django - this means that if a file is there then it gets
 served whilst if it is not then the URL falls through for Django to
 handle. So, favicon, etc can just be put directly in their right place.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/3414#comment:19>
Django Code <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