Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#3927 closed (duplicate)

FastCGI Unhandled Exception

Reported by: cpghost@… Owned by: Adrian Holovaty
Component: runserver Version: dev
Severity: Keywords: runfcgi fastcgi unhandled exception
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Running /usr/ports/www/py-django-devel (Django-20070214.tar.gz) on FreeBSD 6.2, I can't get FastCGI (with lighttpd) to run. The embedded (runserver) server works correctly, just runfcgi doesn't.

How to reproduce:

  1. Start lighttpd/fastcgi like this:

server.port = 85
fastcgi.server = ( "/" =>

( "localhost" =>


"host" => "",
"port" => 10002,
"bin-copy-environment" =>


"broken-scriptfilename" => "enable",




  1. startproject mysite
  2. cd mysite
  3. python runfcgi method=threaded host= port=10002 daemonize=True

Now access (Unhandled Exception - instead of the Django greeting page),
and (404, as expected).

Adding a view and mapping it with also results in 404.

Everything works just fine with runserver, but not with runfcgi.

Change History (2)

comment:1 by anonymous, 17 years ago

Resolution: duplicate
Status: newclosed

comment:2 by Gary Wilson <gary.wilson@…>, 17 years ago

a double post of #3928, which was marked a duplicate of #3414.

Note: See TracTickets for help on using tickets.
Back to Top