【发布时间】:2017-02-08 19:24:27
【问题描述】:
我将我的 WAMP 站点放在一个虚拟服务器上,我希望从那里连接到 VPN 的每个人都可以访问它。
如果我的服务器的 IP 地址是 172.13.12.156,在选择在 WAMP 中联机选项后,我可以访问以下站点之一:
问题是当有人键入时我想删除访问权限:
这样他们就看不到 WAMP 面板了。
这可能吗?
附加信息
此时我已经尝试过:
<Directory "c:/wamp/www/">
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
<Directory "c:/wamp/www/my_site1/">
# There will be comments here and some options like FollowSymLinks and AllowOverride Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
Allow from all
</Directory>
【问题讨论】:
-
你使用的是什么版本的 WAMPServer?
-
@RiggsFolly:我使用的是 WAMP Server 2.5。
-
此时我已经试过了:
<Directory "c:/wamp/www/"> Order Deny,Allow Deny from all Allow from 127.0.0.1 </Directory> <Directory "c:/wamp/www/my_site1/"> # There will be comments here and some options like FollowSymLinks and AllowOverride Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Require all granted Allow from all </Directory> -
这是您对 Apache 的尝试吗?您是否在
httpd.conf文件中完成了虚拟主机定义 -
是的,我想授予对 my_site1 目录的访问权限,但我只能访问其中的索引文件。这是在 httpd.conf 文件中。