www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject config/384: Support for comment area in active configuration lines
Date Mon, 14 Apr 1997 09:10:01 GMT

>Number:         384
>Category:       config
>Synopsis:       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:00 1997
Apache 1.2b8, Any OS
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

>    char *prem;
>    prem = strstr(s,"#;");                  /* Searches for comments */
>    if (prem) *prem = '\0';

View raw message