标签:
多站点配置
httpd-vhosts.conf 虚拟目录配置文件
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host2.example.com //管理员邮箱地址
DocumentRoot "c:/Apache24/docs/dummy-host2.example.com" //文件目录指向网站代码
ServerName dummy-host2.example.com //主机名
ErrorLog "logs/dummy-host2.example.com-error.log" //错误日志
CustomLog "logs/dummy-host2.example.com-access.log" common //日常日志
</VirtualHost>
# Virtual hosts
#Include conf/extra/httpd-vhosts.conf //这句话的意思是包含扩展文件conf/extra/httpd-vhosts.conf ,但是有#号,(#号意思是注释)
wampserver本地php服务器如何让外网访问及启用
允许所有访问
Require all granted
拒绝所有访问
Require all denied
默认是 Require local 仅允许本地访问
仅允许IP:192.168.0.1 访问
Require all granted
Require ip 192.168.0.1
仅禁止IP:192.168.0.1访问
Require all granted
Require not ip 192.168.0.1
标签:
原文地址:http://www.cnblogs.com/nefu929831238/p/5641346.html