Home > Backend Development > PHP Tutorial > Directory certification was finally made! _PHP Tutorial

Directory certification was finally made! _PHP Tutorial

WBOY
Release: 2016-07-13 17:12:15
Original
816 people have browsed it

It's actually very simple! ! Add
directly to HTTP.CONF without .htaccess. # c:/apache/htdocs/down is the directory to be authenticated! Absolute path, please use /
AllowOverride All #Allow all commands
AuthName "member" #Authentication information
AuthType Basic #Authentication category
AuthUserFile d:/down/ww.pwd #Authentication password file Path
require user askswin #The user who can enter askswin

It turned out that the reason why it never worked was that the path c:/apache/htdocs/down did not use an absolute path! ! So it keeps failing! ! Moreover, various documentation files are specific to UNIX. Does the UNIX path use a drive letter? So it has never been successful! !

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/629498.htmlTechArticleIt’s actually very simple! ! Directly add Directory to HTTP.CONF without .htaccess c:/apache/htdocs/down # c:/apache/htdocs/down is the directory to be authenticated! Absolute path, please use /AllowOve...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template