Code

Opened 4 years ago

Closed 3 years ago

Last modified 3 years ago

#13912 closed (fixed)

mod_wsgi documentation uses an erroneous example of AliasMatch

Reported by: SmileyChris 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: UI/UX:

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

Attachments (0)

Change History (4)

comment:1 Changed 4 years ago by gabrielhurley

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 4 years ago by gabrielhurley

  • Keywords deployment added

comment:3 Changed 3 years ago by timo

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:4 Changed 3 years ago by timo

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

Backport of r15115 from trunk.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.