#13912 closed (fixed)
mod_wsgi documentation uses an erroneous example of AliasMatch
| Reported by: | Chris Beaven | Owned by: | nobody |
|---|---|---|---|
| Component: | Documentation | Version: | 1.2 |
| Severity: | 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
The example given of:
AliasMatch /([^/]*\.css) /usr/local/wsgi/static/styles/$1
Is completely wrong. AliasMatch is a regular expression matcher, so this will match any url that ends with "/*.css"
For example, /not/root/media.css will be resolved as /usr/local/wsgi/static/styles/media.css
The correct example would be:
AliasMatch ^/([^/]*\.css) /usr/local/wsgi/static/styles/$1
Change History (4)
comment:1 by , 15 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:2 by , 15 years ago
| Keywords: | deployment added |
|---|
comment:3 by , 15 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:4 by , 15 years ago
Note:
See TracTickets
for help on using tickets.
(In [15115]) Fixed #13912 - Fixed AliasMatch regex in modwsgi docs. Thanks SmileyChris for the report.