I'm been trying to get django work with lighttpd for a while. I
finally got it working however there is a weird error. Whenever I go
to a url, ankiResource.fcgi/ gets appended to the url. This causes
loads of 404's =(
I'm assuming this has something to do with my lighttpd setup, since it
works perfectly on the development server. Heres the part of my
lighttpd config:
[code]
$HTTP["host"] == "anki-resource.uk.to" {
server.document-root = "/home/bombpersons/sites/ankiResource/"
fastcgi.server = (
"/ankiResource.fcgi" => (
"main" => (
"host" => "127.0.0.1",
"port" => 8080,
"check-local" => "disable",
)
),
)
#alias.url = (
# "/Media" => "/home/bombpersons/sites/ankiResource/
Media/",
#)
url.rewrite-once = (
"^(/static.*)$" => "$1",
"^(/.*)$" => "/ankiResource.fcgi$1",
)
}
[/code]
I have a feeling it's something to do with the regular expressions in
url.rewrite-once. I don't really understand them and just copy and
pasted so it may be something obvious...
Sorry if this sort of question gets asked all the time =(
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---