局域网配置站点

摘要:在局域网中配置站点,让局域网内部人员可以访问本地的网站

1、开发工具

PhpStudy

2、配置vhost-conf

<VirtualHost *:80>
    DocumentRoot "D:\phpStudy\WWW\tongyi-login\integration"
    ServerName two.com
    ServerName 192.168.11.138
    ServerAlias 
  <Directory "D:\phpStudy\WWW\tongyi-login\integration">
      Options FollowSymLinks ExecCGI
      AllowOverride All
      Order allow,deny
      Allow from all
      Require all granted
  </Directory>
</VirtualHost>

在servername上加上本地的IP,然后这里我是把防火墙关掉了。

评论
  • 2018-12-27 09:59:43 by Eric Guo
    开启后碰到个问题,正常可以访问,但是使用代理服务器就无法访问,关闭代理就可以正常访问了
  • 2018-12-27 09:59:01 by Eric Guo
    防火墙完全关闭比较危险,可以开启80端口,开启方法是 防火墙-》高级设置-》入站规则-》端口 然后一直下一步按照说明具体操作,可以参考https://jingyan.baidu.com/article/e75057f2c463e8ebc81a8960.html