在 apache conf 文件中,如果一行以 #
开头,则该行被视为注释。例如,
#This is a comment line
#And then the following is some real settings:
AllowOverride None
但是,这是不允许的。
#And then the following is some real settings:
AllowOverride None #A comment that starts in the middle of line
是否可以在行的中间开始注释?如果是,怎么做?
最佳答案
documentation指出这是不可能的:
... 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 ...
关于apache - 如何在 apache httpd.conf 中添加注释而不是完整的行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50084211/