Hi, all:
I used Lighttpd + fastcgi to deploy my Django project. My lighttpd
configuration is as following:

server.modules              = (
                                "mod_rewrite",
                                "mod_redirect",
                                "mod_alias",
                                "mod_access",
                                "mod_status",
                                "mod_fastcgi",
                                "mod_accesslog" )

server.document-root        = "/var/www/lighttpd-htdocs/"

server.errorlog             = "/var/log/lighttpd/error.log"

index-file.names            = ( "index.php", "index.html",
"index.htm", "default.htm" )

accesslog.filename          = "/var/log/lighttpd/access.log"

url.access-deny             = ( "~", ".inc" )

$HTTP["url"] =~ "\.pdf$" {
  server.range-requests = "disable"
}

static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".py" )

server.username            = "work"

server.groupname           = "work"

status.status-url          = "/server-status"
status.config-url          = "/server-config"
status.statistics-url = "/server-statistics"

fastcgi.debug = 1

$HTTP["host"] == "www.ziyoudu.com" {
        server.document-root = "/home/work/clubhome/web/clubhome"

        fastcgi.server = (
                "/ziyoudu.fcgi" => (
                        "main" => (
                                "host" => "127.0.0.1",
                                "port" => 8080,
                        )
                ),
        )

        alias.url = (
                "/medias/" => "/home/work/clubhome/web/clubhome/medias/"        
        )

        url.rewrite-once = (
                "^(/medias.*)$" => "$1",
                "^/favicon\.ico$" => "/medias/favicon.ico",
                "^/server-status" => "/server-status",
                "^/server-config" => "/server-config",
                "^/server-statistics" => "/server-statistics",
                "^(/.*)$" => "/ziyoudu.fcgi$1",
        )
}

The configuration is the same as that in www.djangoproject.com. But lighttpd
return 404 when I access http://www.ziyoudu.com/login/
I enabled the debug information then and found it seems that the url is
translated to a static file path. The debug infomation is:

2009-03-15 16:08:05: (response.c.221) -- splitting Request-URI
2009-03-15 16:08:05: (response.c.222) Request-URI  :  /login/
2009-03-15 16:08:05: (response.c.223) URI-scheme   :  http
2009-03-15 16:08:05: (response.c.224) URI-authority:  www.ziyoudu.com
2009-03-15 16:08:05: (response.c.225) URI-path     :  /login/
2009-03-15 16:08:05: (response.c.226) URI-query    :
2009-03-15 16:08:05: (response.c.221) -- splitting Request-URI
2009-03-15 16:08:05: (response.c.222) Request-URI  :  /ziyoudu.fcgi/login/
2009-03-15 16:08:05: (response.c.223) URI-scheme   :  http
2009-03-15 16:08:05: (response.c.224) URI-authority:  www.ziyoudu.com
2009-03-15 16:08:05: (response.c.225) URI-path     :  /ziyoudu.fcgi/login/
2009-03-15 16:08:05: (response.c.226) URI-query    :
2009-03-15 16:08:05: (response.c.276) -- sanatising URI
2009-03-15 16:08:05: (response.c.277) URI-path     :  /ziyoudu.fcgi/login/
2009-03-15 16:08:05: (mod_access.c.135) -- mod_access_uri_handler called
2009-03-15 16:08:05: (response.c.391) -- before doc_root
2009-03-15 16:08:05: (response.c.392) Doc-Root     :
/home/work/clubhome/web/clubhome
2009-03-15 16:08:05: (response.c.393) Rel-Path     : /ziyoudu.fcgi/login/
2009-03-15 16:08:05: (response.c.394) Path         :
2009-03-15 16:08:05: (response.c.442) -- after doc_root
2009-03-15 16:08:05: (response.c.443) Doc-Root     :
/home/work/clubhome/web/clubhome
2009-03-15 16:08:05: (response.c.444) Rel-Path     : /ziyoudu.fcgi/login/
2009-03-15 16:08:05: (response.c.445) Path         :
/home/work/clubhome/web/clubhome/ziyoudu.fcgi/login/
2009-03-15 16:08:05: (response.c.462) -- logical -> physical
2009-03-15 16:08:05: (response.c.463) Doc-Root     :
/home/work/clubhome/web/clubhome
2009-03-15 16:08:05: (response.c.464) Rel-Path     : /ziyoudu.fcgi/login/
2009-03-15 16:08:05: (response.c.465) Path         :
/home/work/clubhome/web/clubhome/ziyoudu.fcgi/login/
2009-03-15 16:08:05: (response.c.482) -- handling physical path
2009-03-15 16:08:05: (response.c.483) Path         :
/home/work/clubhome/web/clubhome/ziyoudu.fcgi/login/
2009-03-15 16:08:05: (response.c.539) -- file not found
2009-03-15 16:08:05: (response.c.540) Path         :
/home/work/clubhome/web/clubhome/ziyoudu.fcgi/login/

I know I must made a mistake somewhere. But I can not found it out. Any
suggestion?

Thanks very much.

Best Regards
Robert.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to