apache限制ip和用户认证的混合使用方法一
2005-01-08 10:30
507 查看
#DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
DocumentRoot "D:/vss" #修改root文件夹
#
# 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.
#
<Directory /> #设定/backup目录工作方式
Options Indexes FollowSymLinks #Indexes表示当没有index页面时,显示文件夹
AllowOverride None #不接受.htaccess中的設定
Order Deny,Allow #先禁止,再允许
Deny from all #禁止所有计算机访问该文件夹
Allow from 10.0.0.0/8 #只允许10.0.0.0/8网段访问该文件夹
# Allow from 10.0.0.52 10.0.0.24
</Directory>
<Directory "D:/vss/data">
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 tyl test
</Directory>
<Directory "D:/vss/users">
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
</Directory>
DocumentRoot "D:/vss" #修改root文件夹
#
# 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.
#
<Directory /> #设定/backup目录工作方式
Options Indexes FollowSymLinks #Indexes表示当没有index页面时,显示文件夹
AllowOverride None #不接受.htaccess中的設定
Order Deny,Allow #先禁止,再允许
Deny from all #禁止所有计算机访问该文件夹
Allow from 10.0.0.0/8 #只允许10.0.0.0/8网段访问该文件夹
# Allow from 10.0.0.52 10.0.0.24
</Directory>
<Directory "D:/vss/data">
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 tyl test
</Directory>
<Directory "D:/vss/users">
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
</Directory>
相关文章推荐
- apache限制ip和用户认证的混合使用方法
- apache2.2.8 使用 mod_limitipconn 限制用户下载使用线程数目
- Nginx中的用户认证配置及阻止用户使用代理访问的方法
- apache使用.htaccess文件实现用户认证
- 使用memcache或redis限制某个用户或者某ip用户一段时间内最大投票次数
- 使用两个IP实现IIS和Apache公用80端口的方法
- Unix下使用Apache实现用户认证
- SVN+Apache域用户认证配置方法_Windows(转,重新排版,部分内容更新优化)
- Apache设置禁止使用IP访问网站的方法
- nginx与apache 限制ip连接数和带宽方法
- 使用mod_limitipconn.c来限制apache的并发数
- apache禁止直接使用IP访问的实现方法 2011-04-08
- 浅谈城中村宽带出租最简单的限制用户使用路由的方法,价格低了不限制路由不行
- 【腾讯云的1001种玩法】Nginx网站使用CDN之后禁止用户真实IP访问的方法
- apache禁止使用IP访问的实现方法
- Apache 127.0.0.1可以访问,使用本机IP(局域网)不能访问解决方法
- 使用Nginx做前端服务器时让Apache得到真实IP的方法
- 限制用户擅自更改ip的方法
- nginx与apache 限制ip连接数和带宽方法
- nginx与apache限制ip并发访问 限制ip连接的设置方法