#13625: FORCE_SCRIPT_NAME bug -------------------------------------+-------------------------------------- Reporter: liangent | Owner: nobody Status: closed | Milestone: Component: Core framework | Version: SVN Resolution: worksforme | Keywords: Stage: Unreviewed | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | -------------------------------------+-------------------------------------- Changes (by ramiro):
* status: reopened => closed * resolution: => worksforme Comment: I rewrote the lighttpd rewrite rule to almosy completely mimic the first Zeus Web server snippet you posted, including setting the virtual bucket `mysite.fcgi` full path to `"/path/mysite.fcgi"`. The only detail I had to add is the anchor $ at the end (for you case the rule would need to be `"match URL into $ with ^/path(.*)$"`) If I don't do that, again the 404 page shown isn't Django's one but Web server's. {{{ fastcgi.server = ( "/mysite.fcgi" => ( "main" => ( "socket" => "/foo/mysite.sock", "check-local" => "disable" ) ) ) alias.url = ( "/static/admin" => "/home/ramiro/django/upstream/django/contrib/admin/media/", ) url.rewrite-once = ( "^(/static/admin.*)$" => "$1", access to both "/path" and "/path/" shows the Django view wired to the r'^$' expression in the main urls.py): "^/path(.*)$" => "/path/mysite.fcgi$1", ) }}} And things work as expected: Access to both "/path" and "/path/" shows the Django view wired to the `r'^$'` RE in the main urls.py, access to the admin app in /path/admin works without problems (logging in, CSS, JS images media serving, model CRUD, logging out). Because all the above, I conclude this is a problem with the web server setup and therefore I'm closing this ticket. -- Ticket URL: <http://code.djangoproject.com/ticket/13625#comment:3> 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 django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.