httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 47722] Small error in the urlmapping example
Date Sat, 22 Aug 2009 21:32:54 GMT

--- Comment #2 from Felix <> 2009-08-22 14:32:51 PDT ---
Well, IIRC, a login on linux is [a-z0-9]+ (now that I think of it, I'm not even
sure the A-Z would be necessary in the regex), so I'd limit the regex to those,
not sure how it is on other platforms. That would rule out your second

Pertaining the first one, you are right that it improves readability, but I'd
still make the / mandatory as a first character for the "rest" after the login
part, or else you might end up again matching "/upages/favicon.ico" to
"/home/favicon/public_html.ico". I think the middle ground would be:
AliasMatch ^/upages/([a-z0-9]+)(/.*)?$ /home/$1/public_html$2

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message