apache中如何只允许本地和另一IP访问

httpd.conf 中设置

Options All

AllowOverride None

Order Deny,Allow

Deny From all

Allow From 192.168.0.7

Allow From 127.0.0.1

Drop Your Comment