Hello all,

Today I ran into a 500 error because of the following configuration line in a .htaccess file:

Allow from 152.10.123.123   # Bob Barker - bobb - updated 20140909

The error log said "the specified IP address is invalid". Frustratingly, it did not say *which* IP address, so it was trial and error to locate the offending address in a list of 30+ addresses.


Oddly enough, adding a dash to the date on the end fixed the 500 error:

Allow from 152.10.123.123   # Bob Barker - bobb - updated 2014-0909


A quick Google through the list archives shows that comments are not supported on the same lines as configuration directives. However, such comments seem to work OK most of the time, except for some very specific exceptions. See the 3rd paragraph here:
http://httpd.apache.org/docs/trunk/configuring.html#syntax



Does anyone know the history on this? Comments at the end of configuration lines seems like an obvious feature and expected functionality. I take it there's a good reason why this wouldn't be supported -- does anyone know what that reason is?

Suppose I wanted to submit a patch to add such commenting support. How involved would you estimate that patch to be for a new contributor?

Regards,
    Jeremy

Reply via email to