PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, June 29, 2022

[FIXED] How to add comment in apache httpd.conf not as a complete line?

 June 29, 2022     apache, comments, httpd.conf     No comments   

Issue

In an apache conf file, if a line is start with #, that line is counted as comment. For example,

#This is a comment line
#And then the following is some real settings:
AllowOverride None

However, this is not allowed.

#And then the following is some real settings:
AllowOverride None #A comment that starts in the middle of line

Is it possible to starts a comment in the middle of the line? And if yes, how?


Solution

The documentation states that it is not possible:

... Lines that begin with the hash character "#" are considered comments, and are ignored. Comments may not be included on the same line as a configuration directive ...



Answered By - Juan Mellado
Answer Checked By - Marilyn (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing