Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

In lighttpd.conf usually comment 1 line with #

How was wondering how to comment multiple lines without adding # in front of each line.


share|improve this question

3 Answers 3

up vote 5 down vote accepted

since the lighttpd documentation doesnt show something like this in the syntax documentation, i dont think this is possible.

however, your editor may have a function to put a # in front of every line you select :)

share|improve this answer

You could pull the lines out into a separate.conf file and then in the main file do:

include "separate.conf"

Then you have a single line that you can comment in/out as you wish with a #.

Not precisely what you want, but depending on why you want to do it, that might be of use.

share|improve this answer

This is PHP, correct? If so you would just use:

/* This is the start of my comment

This is more of my comment. This is

the end of my comment. */

Good luck.

share|improve this answer
No it is the webserver configuration file. How can be php if I use # on a single line ? –  Patrick Nov 17 '10 at 12:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.