Opened 17 years ago
Last modified 12 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 )
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.
Note:
See TracTickets
for help on using tickets.
[fixed formatting]