Opened 16 years ago
Closed 11 years ago
#10464 closed New feature (wontfix)
Django Lighttpd Deployment Addition
Reported by: | dgt84 | Owned by: | |
---|---|---|---|
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.
Change History (10)
comment:1 by , 16 years ago
Description: | modified (diff) |
---|
comment:2 by , 16 years ago
Triage Stage: | Unreviewed → Design decision needed |
---|
We can't really expect to document every single quirk of every server Django could run on -- at a certain point, people are going to have to read the web server documentation, too. Still, this is probably worth mentioning somewhere.
comment:3 by , 14 years ago
if it should be mentioned anywhere it's in the lighttpd setup section of the deployment docs.
The thing that makes me uncertain that this should be brought up is that the example configuration currently does not give an example of the $HTTP["url"]
-style syntax. It only shows the $HTTP["host"]
-style configuration (which has always been my go-to configuration without even knowing about this issue).
So, the question is whether this issue--which is entirely incumbent on lighttpd--is so severe that it warrants mentioning even though we already encourage people in a direction that would avoid it?
comment:4 by , 14 years ago
Keywords: | deployment added |
---|
comment:5 by , 14 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Triage Stage: | Design decision needed → Accepted |
I'll incorporate this into an overall lighttpd deployment review/overhaul.
comment:6 by , 14 years ago
Owner: | removed |
---|
comment:7 by , 14 years ago
Severity: | → Normal |
---|---|
Type: | → New feature |
comment:10 by , 11 years ago
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
FastCGI is being deprecated.
[fixed formatting]