httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47722] Small error in the urlmapping example
Date Sat, 22 Aug 2009 21:32:54 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47722



--- Comment #2 from Felix <felix.schaefer@tu-dortmund.de> 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
proposition.

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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message