In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces how apache httpd forbids directory browsing and security configuration, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
1. Prohibit directory browsing
Modify httpd.conf
Before modifying the directory configuration
Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all
After modifying the directory configuration
Options FollowSymLinks AllowOverride None Order allow,deny Allow from all
two。 Error page redirection
Turn on the rewrite redirection module
# LoadModule rewrite_module modules/mod_rewrite.so
Find the above module load entry and delete the comment
LoadModule rewrite_module modules/mod_rewrite.so
Redirect 403 errors to a file
Add two redirection rules to the configuration file
RewriteEngine On
ErrorDocument 403 / 403.html
But the above method doesn't seem to work for IE browsers. I can't find out why.
3. Access via IP is prohibited and access via domain name is allowed.
Add site configuration to the configuration file and point to the prohibited page
DocumentRoot "D:\ Apache22\ htdocs"
ServerName IP address
# ErrorLog "logs/ip-error.log"
# CustomLog "logs/ip-access.log" common
DirectoryIndex 403.html
Thank you for reading this article carefully. I hope the article "how to prohibit directory browsing and security configuration" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.