For example, to protect the admin folder, go through the following two steps:
Step one, you can create a new file with Notepad. htaccess, enter the following:
AuthType BasicAuth
UserFile d:/appserv/www/hill/admin/.htpasswd
AuthName "Hill"
See: http://blog.csdn.net/scchary/article/details/40045807 #--represents a comment at the beginning of the line. [F]--forbidden (Forbidden): Command Server returns 403 Forbidden error to user browser [l]--last Rule (last rule): tells the
The. htaccess file provides methods for changing the configuration of each directory.Working Principle and usage
. The htaccess file (or "distributed configuration file") provides a method for changing the configuration of each directory, that is,
The. htaccess of the Apache server is a very powerful distributed configuration file. Learn to use. htaccess, which can implement many functions for VM users. Here is an easy-to-understand. htaccess introduction, which is very suitable for getting
What is. htaccess?. The htaccess file (or "distributed configuration file") provides a method for changing the configuration of directories, that is, to place a file containing one or more commands in a specific document directory, to act on this
Full Analysis of Apache Web server access control mechanism
See: http://netsecurity.51cto.com/art/201102/245666.htm
The Aapche server in Linux provides powerful access control functions. Users can choose to configure the server by using the
Original article:Http://notebook.rose.czwz.com/archive/2007/09/14/htaccess.aspx. Htaccess Guide
This is an introduction to. htaccess and a document about the. htaccess application that is easy to understand. I translated it at will and
Protect the Linux Apache website-Linux Enterprise Application-Linux server application information. The following is a detailed description. How can we protect websites from illegal user login? Generally, you can use the identity authentication
Supplemental Information This network uses the Linux server, the Web server is built by Apache, the IP address is 192.168.1.5, the background page is/admin/login.jsp. How to set the background page login.jsp only allow 192.168.1.10 access. And the
In the thinkphp case, there is a. htaccess file with URL rewriting rules configured, such as IfModulemod_rewrite.cRewriteEngineonRewriteCond % {REQUEST_FILENAME }! -DRewriteCond % {REQUEST_FILENAME }! -FRewriteRule ^ (. *) $ index. php $1 [QSA, PT,
In the previous analysis of the weevely backdoor, there was a reference to the use of Apache's configuration file. htaccess to hide the PHP backdoor. About the purpose of the. htaccess file, in this connection with the specific configuration of the
1. Install patches frequently.
Changelog on www.apache.org contains the words bug fix and security bug. Therefore, the Linux administrator should pay attention to website defects and promptly upgrade the system or install patches. Using the highest
1. Modify the Apache configuration file1. Open the httpd. conf file in the conf directory under the apache installation directory on your server and change AllowOverride None to AllowOverride All.● Custom error page. One application of htaccess is a
There are two ways to customize the 404 error page for the Apache server:The first method is the simplest, directly under the Apache httpd.conf Configuration Modification Command, the contents of the changes are described in. htaccess command syntax
. The htaccess file is an important configuration file in Apache. Its format is plain text. It provides a method for changing the configuration of directories, you can place a file containing one or more commands in a specific document directory to
Today, the Local debugging PHP program, the use of the. htaccess, and the default configuration inside. htaccess, found on the Internet to open. htaccess, a feasible way for friends to learn from. (Open my His method not, look up a bit allowoverride
1. Apache Configuration systemAs a whole, Apache's configuration system consists of three parts:(1) configuration files: such as httpd.conf. htaccess(2) Configuration directive: Any line in the configuration file httpd.conf. htaccess is a
Click centoscn.com. This is the 301 feature.Is website 301 redirection restricted by the environment? I think there is no environment restriction for 301 redirection. As long as it is a virtual host, whether it is a php virtual host in linux or a
What is htaccess
As an overview, the htaccess file is a configuration file in the Apache server that is responsible for the page configuration in the related directory. Through the htaccess file, you can help us achieve: Web 301 redirect, custom 404
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.