Opened 16 years ago
Last modified 11 years ago
#10464 closed
Django Lighttpd Deployment Addition — at Initial Version
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
It appears that lighttpd will IGNORE mod_rewrite rules within blocks using $HTTPurl 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 $HTTPurl, for example using "host" will work:
$HTTPurl =~ "/login" {
url.redirect = "https://....../login"
} else $HTTPhost ~= ".*" {
fastcgi.server = ....
}
I think the docs should be updated to reflect this as it will save others horrible headaches.
Note:
See TracTickets
for help on using tickets.