Apache Discuz user authentication

Source: Internet
Author: User

Purpose: In order to increase the security, when the user accesses: admin.php needs to enter the authentication information to proceed the next step

Operation Steps:

In the virtual host configuration file, you need to join
<Directory/data/www/admin.php> #admin. Directory where PHP is located
allowoverride authconfig #启用验证模块

AuthType Basic #类型
AUTHUSERFILE/DATA/WWW/.HTPASSWD #密码文件所在的位置
Require Valid-user

</Directory>


Htpasswd-c/DATA/WEB/TEST/.HTPASSWD Test
#第一次创建用户要用到-C parameter is added to the user for the 2nd time without the-c parameter

If you want to change your password, you can:

Htpasswd-m. htpasswd test2

Restart Apache, then.

This article is from the "night Reading Wit Hope female Ghost" blog, please be sure to keep this source http://more3.blog.51cto.com/9929586/1654366

Apache Discuz user authentication

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.