开发者

Apache shows .htaccess for some sites

开发者 https://www.devze.com 2022-12-19 22:07 出处:网络
I\'ve setting in httpd.conf to restrict access to .htaccess files for all sites and it\'s working for most of the sites. Unfortunately, I can see .htaccess file from web browser at one of my sites.

I've setting in httpd.conf to restrict access to .htaccess files for all sites and it's working for most of the sites. Unfortunately, I can see .htaccess file from web browser at one of my sites.

What can be the reason for that and how can I avo开发者_如何学Cid it?

Thanks in advance.


The standard directive is:

<FilesMatch "^\.ht">
  Order allow,deny
  Deny from all
</FilesMatch>

But there may be issues due to case-sensitivity of your file system for example.

0

精彩评论

暂无评论...
验证码 换一张
取 消