Hello All,
I setup lighttpd and fastcgi the other day and everything seemed good
until I tried to log into admin. It posts to "//admin" which in the
browser is http:///admin without a host. I believe this is due to
adding FORCE_SCRIPT_NAME="/" in my setting file which was required to
make {% url %} and reverse work I believe. Is there a fix I haven't
found? my lighttpd.conf with [CAPS] placeholders. Any thoughts on
where to look?
server.modules = ( "mod_rewrite",
"mod_redirect",
"mod_fastcgi",
"mod_alias",
"mod_access",
"mod_accesslog" )
server.errorlog = "/opt/django/fastcgi/error.log"
accesslog.filename = "/opt/django/fastcgi/access.log"
server.document-root = "/opt/django/html/"
server.port = 8080
mimetype.assign = (
".pdf" => "application/pdf",
".jpg" => "image/jpeg",
".jpeg" => "image/jpeg",
".png" => "image/png",
".js" => "text/javascript",
".css" => "text/css",
".html" => "text/html",
".htm" => "text/html",
".gif" => "image/gif",
"" => "application/octet-stream",
)
$HTTP["url"] =~ "^/media($|/)" {
dir-listing.activate = "enable"
}
$HTTP["host"] == "[HOSTNAME]" {
url.redirect = ( "^/(.*)" => "http://[SERVER]/$1" )
}
$HTTP["host"] == "[SERVER]" {
fastcgi.server = (
"/mysite.fcgi" => (
"main" => (
"socket" => "/opt/django/fastcgi/[SERVER].socket",
"check-local" => "disable",
)
)
)
alias.url = (
"/media" => "/opt/django/[PROJECT]/site_media/",
)
url.rewrite-once = (
"^(/media.*)$" => "$1",
"^(/.*)$" => "/mysite.fcgi$1"
)
}
Thank you,
Mark
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---