Wampsever 外网访问网站显示:
You don’t have permission to access /index.html on this server.
-
解决办法:
在 httpd.conf 里面找到
AllowOverride none
Require all denied
修改成下面这样就好了 <Directory /> AllowOverride none Require all granted </Directory> 再者 httpd-vhosts.conf里面修改成如下 #Virtual Hosts # <VirtualHost *:80> ServerName localhost ServerAlias localhost DocumentRoot c:/wamp/www <Directory "c:/wamp/www/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require all granted </Directory> </VirtualHost>
Static
static 只在第一次调用时执行
定界符不用顾虑 双引号
<<<php
xxxxxx
php;