为了方便和速度,我使用easyphp在本地pipe理了许多站点。 我用Apache为每个站点configuration一个别名:
Alias "/site.com" "C:/Work/site.com/Dev" <Directory "C:/Work/site.com/Dev" Options FollowSymLinks Indexes AllowOverride All Order deny,allow Allow from 127.0.0.1 Deny from all Require all granted </Directory>
但是,为了安全起见,我会阻止DocumentRoot之外的文件的访问,例如:
通过http://localhost/site.com我将无法访问文件夹C:/Work/ ,但只有C:/ Work/site.com 。
可能吗? 它应该使用虚拟主机,而不是别名?
谢谢