Hello,
I'm begging for help. I get stuck with this for few days and can't go on. I'm trying to serve my django app with both static and dynamic files but i can't get configuration to work. Here is what i do.
First my lighttpd.conf
Moduls
Code:
"mod_access",
"mod_alias",
"mod_accesslog",
"mod_compress",
"mod_rewrite",
"mod_fastcgi",
"mod_status",
And the part for handling django app
Code:
$HTTP["host"] == "example.com" {
server.document-root = "/var/www/name/" # tis is where my app lives
fastcgi.server = (
"/name.fcgi" => (
"main" => (
"socket" => "/var/www/name/name.sock",
"check-local" => "disable",
)
),
)
alias.url += ( "/media/" => "/var/www/media/",
"/admin_media/" => "/usr/lib/python2.6/site-packages/django/contrib/admin/media/" )
url.rewrite-once = (
"^(/media/.*)$" => "$1",
"^(/admin_media/.*)$" => "$1",
"^/(.*)$" => "/name.fcgi/$1",
)
}
Here is my /etc/hosts
Code:
127.0.0.1 localhost.localdomain example.com
And here is how i start my app
Code:
python manage.py runfcgi daemonize=false socket=/var/www/name/name.sock
And i get only
Code:
Placeholder page
The owner of this web site has not put up any web pages yet. Please come back later.
Any help is appreciate.Thx in advance
Artur