Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#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 Gabriel Hurley, 14 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Gabriel Hurley, 14 years ago

Keywords: deployment added

comment:3 by Tim Graham, 14 years ago

Resolution: fixed
Status: newclosed

(In [15115]) Fixed #13912 - Fixed AliasMatch regex in modwsgi docs. Thanks SmileyChris for the report.

comment:4 by Tim Graham, 14 years ago

(In [15116]) [1.2.X] Fixed #13912 - Fixed AliasMatch regex in modwsgi docs. Thanks SmileyChris for the report.

Backport of r15115 from trunk.

Note: See TracTickets for help on using tickets.
Back to Top