PATCH: Allow FQDN in mod_evhost path-pattern
I have a case where I need the FQDN in the "evhost.path-pattern".
There is however a small bug in it, it needs a trailing-slash behind "%_", else the last character in the evhost.path-pattern dosn't make it, I didn't quite understand where this happens.
Add '%_' pattern for complete hostname in mod_evhost (fixes #1737)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2483 152afb58-edef-0310-8abb-c4023f1b3aa9
Updated by Anonymous about 11 years ago
some comments from #lighttpd:
14:57 stbuehler| i don't think we should do that in 1.4.x 14:57 icy| do it for 1.5 only 14:57 icy| or introduce special stuff 14:57 stbuehler| we could rename the options 14:58 icy| %h hostname, %t tld, %d domain 14:58 icy| or something 14:58 Mr_Bond| I agree it's not very nice. Also, if there was a "hostname" variable in the request_uri type, it would be unnessesary to do all the buffer handling 14:58 Mr_Bond| icy, yeah, I like that better 14:58 Mr_Bond| makes more sense 14:58 icy| and %1, %2, %3... to get the n-th part seperated by dots 14:58 stbuehler| i think numbers for the parts are ok 14:58 icy| n-th from the end 14:59 icy| that would make more sense imho 14:59 stbuehler| %0 should just be the fqdn 14:59 Mr_Bond| agree icy, allthough it would break a lot of setups 14:59 Mr_Bond| stbuehler, damn right! 14:59 DarkElf| lol there is also three person did same patch 14:59 stbuehler| (btw, there is one comment in the source telling %0 is fqdn) 14:59 icy| that's why we should do this to 1.5 only
Also available in: Atom