[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#296493: apache2ctl -t should warn about non-initial #



> I wanted to modify the default DirectoryIndex line in apache2.conf,
> so I attempted to comment out just the last couple entries:
>
> DirectoryIndex index.html index.shtml index.cgi index.pl #index.php
> index.xhtml
>
> This is an error, because apparently the config file doesn't expect
> to have comments in the middle of lines. This causes the internal
> request recursion limit to be hit when trying to access any
> directory without an explicit index file, and thus the user sees
> "500 Internal Server Error." The ErrorLog reports the following:

The documentation states: "Comments may not be included on a line 
after a configuration directive. "

'#' signs are considered normal characters inside a directive, so a 
warning would not be appropriate either. But I agree that 
DirectoryIndex is not behaving correctly here.





Reply to: