[Django]-Css not working with FastCGI and Lighttpd

0👍

Here example of my conf.
Look at fastcgi.server values:

$HTTP["host"] == "example.com" {
    server.document-root = "/var/django/example.com/mysite/"
    fastcgi.server = (
        "/mysite.fcgi" => (
            "main" => (
                # Use host / port instead of socket for TCP fastcgi
                # "host" => "127.0.0.1",
                # "port" => 3033,
                "socket" => "/var/django/example.com/mysite/mysite.sock",
                "check-local" => "disable",
                )
            ),
        )

    alias.url = (
        "/media" => "/usr/lib/python2.7/site-packages/django/contrib/admin/media/",
        "/favicon.ico" => "/var/django/example.com/mysite/static/img/favicon.ico",
    )

    url.rewrite-once = (
        "^(/media.*)$" => "$1",
        "^(/static.*)$" => "$1",
        "^(/favicon.ico)$" => "$1",
        "^(/.*)$" => "/mysite.fcgi$1",
        )

    accesslog.filename = "/var/log/lighttpd/example.com.log"

Leave a comment