You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Alberto Villar <vi...@alba.mssl.es> on 1997/04/14 11:10:02 UTC

config/385: Additional info to: Support for comment area in active configuration lines

>Number:         385
>Category:       config
>Synopsis:       Additional info to: Support for comment area in active configuration lines
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache (Apache HTTP Project)
>State:          open
>Class:          change-request
>Submitter-Id:   apache
>Arrival-Date:   Mon Apr 14 02:10:02 1997
>Originator:     villar@alba.mssl.es
>Organization:
apache
>Release:        1.2b8
>Environment:
Apache 1.2b8, Any OS
>Description:
In order to keep compact (and easy to read) files comment could be held in
the configuration lines, as follows:

Port            80                          #; Must be root if < 1024
HostnameLookups On                          #; On/Off. Log names/IP addresses
User            nouser                      #; Name or Id
Group           nogroup                     #; Name or Id
#BrowserMatch   Mozilla/2 nokeepalive

By this way comment would be:

    Any line starting by # at column 1

    Any characters after the #; sequence

The double character allows both # and ; to be part of non-comment field
in any config line

There are some changes to be done to util.c
>How-To-Repeat:

>Fix:
"util.c" file
553a554
>    char *prem;
576a578,579
>    prem = strstr(s,"#;");                  /* Searches for comments */
>    if (prem) *prem = '\0';
%0
>Audit-Trail:
>Unformatted: