如何在Apache httpd.conf中添加注释而不是完整的行? [英] How to add comment in apache httpd.conf not as a complete line?

查看:92
本文介绍了如何在Apache httpd.conf中添加注释而不是完整的行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在apache conf文件中,如果一行以#开头,则该行被视为注释.例如,

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

但是,这是不允许的.

#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?

推荐答案

文档指出不可能:

...以井号#"开头的行被视为注释, 并且被忽略.注释可能包含在与 配置指令...

... 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 httpd.conf中添加注释而不是完整的行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆