【发布时间】:2014-06-17 19:08:11
【问题描述】:
如何使只有某个地址可以访问我的一个虚拟主机?
我试过了:
<VirtualHost *:80>
DocumentRoot "C:\Web Server\phpmyadmin"
ServerName localhost
<Directory />
Require all granted
Require ip 192.168.0.10
</Directory>
# Other directives here
</VirtualHost>
还有:
DocumentRoot "C:\Web 服务器\phpmyadmin" 服务器名称 localhost
<Directory />
<RequireAll>
Require all granted
Require ip 192.168.0.10
</RequireAll>
</Directory>
# Other directives here
但是 Apache 拒绝启动。
【问题讨论】:
标签: apache .htaccess access-control vhosts