On 07 Nov 2012, at 8:12 PM, Stefan Fritsch <s...@sfritsch.de> wrote: > Any suggestions for a syntax? Maybe: > > HttpProtocol 1.1 # only 1.1 > HttpProtocol 1.0- # 1.0 and above > HttpProtocol 1.0-1.1 # 1.0 and 1.1 > HttpProtocol -1.0 # 1.0 and below > > We could then still add additional flags like +/- strict.
The "-" in front of something means "switch this off" in other directives, I suspect it might cause confusion. Would it make sense to try use globbing (apr_fnmatch)? Perhaps multiple options separated by commas, or an ITERATE separated by spaces? HttpProtocol * # any version HttpProtocol 1.1 # only 1.1 HttpProtocol 1.* # 1.0 and above HttpProtocol 1.0,1.1 # 1.0 and 1.1 HttpProtocol 0.*,1.0 # 1.0 and below RFC2616 defines the version as follows: HTTP-Version = "HTTP" "/" 1*DIGIT "." 1*DIGIT We could potentially also add a check to make sure that "DIGIT" part is checked to be actual digits, and reject it otherwise. Regards, Graham --
smime.p7s
Description: S/MIME cryptographic signature