Opened 15 years ago

Last modified 11 years ago

#10464 closed

Django Lighttpd Deployment Addition — at Version 1

Reported by: dgt84 Owned by: nobody
Component: Documentation Version: 1.0
Severity: Normal Keywords: deployment
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Jacob)

It appears that lighttpd will IGNORE mod_rewrite rules within blocks using $HTTP["url"] to match on URLs (a fairly common thing to do to redirect to HTTPS for example). In order to do that you must NOT use $HTTP["url"], for example using "host" will work:

$HTTP["url"] =~ "/login" {
    url.redirect = "https://....../login"
} else $HTTP["host"] ~= ".*" {
    fastcgi.server = ....
}

I think the docs should be updated to reflect this as it will save others horrible headaches.

Change History (1)

comment:1 by Jacob, 15 years ago

Description: modified (diff)

[fixed formatting]

Note: See TracTickets for help on using tickets.
Back to Top