On Apr 8, 4:12 am, skunkwerk <[EMAIL PROTECTED]> wrote: > thank you so much Ramiro, > I've removed the .fcgi file. the problem turned out to be that the > url.rewrite part of the configuration was in my original setup, but > was producing a warning and was being ignored because I hadn't > uncommented the mod_rewrite module in lighttpd.conf > > it's working now! > > is it normal for the fcgi start command to start 4 processes (as seen > in htop)? in addition, it didn't start the processes with the correct > pid that i specified in a file... > > thanks > > On Apr 7, 5:12 pm, "Ramiro Morales" <[EMAIL PROTECTED]> wrote: > > > On Sun, Apr 6, 2008 at 6:53 PM, skunkwerk <[EMAIL PROTECTED]> wrote: > > > > I'm having trouble running django with lighttpd (I'm not on a shared > > > host). Here is what I've installed: > > > > ubuntu 7.10 > > > lighttpd > > > flup > > > cmemcache > > > python > > > > When I go to my web address which maps to the django project > > > directory, all I see is a directory listing, not any django pages. > > > > I started fcgi like this, as in the docs: > > > ./manage.py runfcgi method=threaded host=127.0.0.1 port=3033 > > > > have this in my lighttpd.conf: > > > server.modules = ( > > > "mod_access", > > > "mod_alias", > > > "mod_accesslog", > > > "mod_compress", > > > "mod_fastcgi", > > > ) > > > > fastcgi.server = ( > > > "/mnt/project/mysite.fcgi" => ( > > > "main" => ( > > > "host" => "127.0.0.1", > > > "port" => 3033, > > > "check-local" => "disable", > > > ) > > > ), > > > ) > So then I have but mine is still not working. Maybe it is a problem with my url.rewrite-once or including rewrite which you do not have listed?? Thanks for any help!
Douglas server.modules = ( "mod_access", "mod_alias", "mod_compress", "mod_rewrite", "mod_fastcgi", "mod_accesslog", ) server.document-root = "/var/www" #$HTTP["host"] == "journeytothestars.webhop.net"{server.document-root = "/var/www/"} fastcgi.server = ( "/journeysite.fcgi" => ( "main" => ( # Use host / port instead of socket for TCP fastcgi "host" => "127.0.0.1", "port" => 3080, #"socket" => "/home/user/mysite.sock", "check-local" => "disable", ) ), ) alias.url = ( "/media/" => "/home/douglas/django_trunk/django/contrib/admin/media/", ) url.rewrite-once = ( "^/$" => "/index.html", ".*/images.*" => "$0", ".*\.css" => "$0", "^(/media.*)$" => "$1", ".*\.html($|\?)" => "$0",# This will make mod_rewrite "ignore" all requests of html files (or rather rewrite them to themselves, which makes it effectively ignore them) "^/favicon\.ico$" => "/media/favicon.ico", "^(/.*)$" => "/journeysite.fcgi$1", ) --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---