#13912 closed (fixed)
mod_wsgi documentation uses an erroneous example of AliasMatch
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 , 14 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 14 years ago
Keywords: | deployment added |
---|
comment:3 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 by , 14 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.