Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

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

From: Stefan Fritsch <sf(at)sfritsch.de>
Date: Thu Sep 27 2007 - 15:24:42 EDT


> 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.

-- 
To UNSUBSCRIBE, email to debian-apache-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Thu Sep 27 16:08:29 2007

This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 07:57:54 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library