Project

General

Profile

Actions

Feature #298

closed

multi-line comments in configfile are tedious

Added by Anonymous over 19 years ago. Updated about 8 years ago.

Status:
Wontfix
Priority:
Low
Category:
core
Target version:
-
ASK QUESTIONS IN Forums:

Description

It would be very nice to see some type of multiline comment available.

Say I need to test a fastcgi directive, I could either keep 2 copies of the same file, or I could comment out the bad fcgi directive using for example /* this is a comment */ instead of having to prefix every line (one fcgi directive in my conf is ~20 lines long) with a #.

-- infowolfe

Actions #1

Updated by mike503 almost 18 years ago

yes C-style multi-line commenting could help. i had the same desire when i was trying multiple config variations.

Actions #2

Updated by gstrauss about 9 years ago

  • Description updated (diff)
  • Priority changed from Normal to Low

http://stackoverflow.com/questions/8482198/how-do-you-comment-out-a-block-of-text-in-the-vhosts-file
which reminds us that some editors have column-mode editing, e.g. in vi :2,10s/^/# / will add comment-space at the beginning of lines 2-10.

A workaround in Apache is wrap things in <IfDefine IgnoreBlockComment>
http://serverfault.com/questions/345848/do-apache-config-files-support-block-commenting
but something similar is not available in lighttpd

Actions #3

Updated by gstrauss about 8 years ago

  • Status changed from New to Wontfix
  • Assignee deleted (jan)

While I can see that it might be slightly more convenient to have a way to do this natively in lighttpd config, many editors provide quick ways to do this, and so this feature request is deemed to be not worth the time to implement. If someone would like to submit patches, the patches will be reviewed.

Actions

Also available in: Atom