网站首页 博客 apache只允许某些IP访问
apache只允许某些IP访问
 2022-11-21 16:46:52  管理员  94

apache只允许某些IP访问

DocumentRoot "/path/to/your/web"

ServerName www.iefeel.com

DirectoryIndex index.html index.php

<Directory "/path/to/your/web">

Options Indexes FollowSymLinks

AllowOverride all

Require all granted

Deny From all

Allow From 192.168.0.100

Allow From 192.168.0.101

</Directory>


来说两句吧
最新评论