You can use
# to comment out individual lines.
Is there a syntax for commenting out entire blocks?
I've tired surrounding the block (specifically a
<Directory> block) with
<IfModule asdfasdf>...</IfModule>, but that didn't work.
I came across this post from a Google search for "Apache block comment". Later, I discovered a non-perl, non-import solution from Apache's core documentation (although I'm sure this is very non-intended practice). From the core documentation for Apache 2.0 http://httpd.apache.org/docs/2.0/mod/core.html, you can see that the tag
So that'll successfully "comment" out the statements in between.
AFAIK, Apache doesn't support this.
But, if you're using
For instance, given this snippet:
Put the cursor under the
You can't do it directly but here's a hacky work-around:
It expands upon your "IfModule" approach above but it leverages the mod_perl
It should work whether mod_perl is loaded or not.
I am not sure if apache has such type of comments.
As a workaround, you can use include statement in the following way:
When you want to comment this block, you just need to comment out the include line: