Apache limits the mixing method of IP and user authentication

xiaoxiao2021-03-06  41

#DocumentRoot "C: / Program Files / Apache Group / Apache2 / htdocs" DocumentRoot "D: / vss" # modify the root folder ## Each directory to which Apache has access can be configured with respect # to which services and features are allowed and / or disabled in that # directory (and its subdirectories). ## First, we configure the "default" to be a very restrictive set of # features. # # set / backup directory work Options Indexes FollowSymLinks #Indexes means that when there is no Index page, display folder allowoverride none #

Do not accept. ORDER DENY, ALLOW # first, allowing Deny from all # Prevention, then all computers from accessing this folder Allow from 10.0.0.0/8 # only 10.0.0.0/8 network segment to access the folder # Allow from 10.0.0.52 10.0.0.24

Options Indexes FollowSymLinks AllowOverride None Order Deny, Allow Deny from all Allow from 10.0.0.0/8 AuthType Basic # authentication area and the name of the definition AuthName "VSS" AuthUserFile C: / PASSWD / passwd # Defining Certified File Name Require User TEST

Options Indexes FollowSymLinks AllowOverride None Order Deny, Allow Deny from all Allow from 10.0.0.0/8 AuthType Basic AuthName "VSS" AuthUserFile C: / PASSWD / passwd require user test1

转载请注明原文地址:https://www.9cbs.com/read-71667.html

New Post(0)