问一个apache的配置问题
在已经配置好的httpd.conf看见这样一段:
<IfModule mod_userdir.c>
UserDir public_html
</IfModule>
AccessFileName .htaccess
#
# The following lines prevent .htaccess files from being viewed by
# Web clients. Since .htaccess files often contain authorization
# information, access is disallowed for security reasons. Comment
# these lines out if you want Web visitors to see the contents of
# .htaccess files. If you change the AccessFileName directive above,
# be sure to make the corresponding changes here.
# 1.上面是.htacess,下面是.ht,这不是明显名字不统一么?
# 2.下面的那一语句块是否只起了限定访问的作用,实际的.htacess文件还要在具体文件夹中定义呢???/
# 3.如果在有需要情况下创建多个.htaccess文件, 那么名字必须都是通一成AccessFileName指定的名字了吧, 那么到底是.htacess,还是.ht???
#
# Also, folks tend to use names such as .htpasswd for password
# files, so this will protect those as well.
#
<Files ~ "^.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
不懂的地方写在了注释中, 哪位能帮忙解答一下,不胜感激!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论