【问题标题】:Apache 2.4 VirtualHost Ubuntu allow access to only local networkApache 2.4 VirtualHost Ubuntu 只允许访问本地网络
【发布时间】:2014-09-30 22:46:55
【问题描述】:

我想修改我的 apache2.conf 以只允许连接到我的网络 (wifi) 的设备访问我的虚拟主机。我试过“要求 ip 192.168.2.2/252”(我的 DHCP 范围是从 192.168.2.2 到 192.168.2.252)但 apache 2.4 不再接受。

【问题讨论】:

    标签: networking local virtualhost ubuntu-14.04 apache2.4


    【解决方案1】:

    Apache 2.4 仍然是 supports this。确保 mod_authz_host 模块已安装并打开:

    LoadModule mod_authz_host modules/mod_authz_host.so
    

    (或模块的类似路径)

    【讨论】:

      猜你喜欢
      • 2020-04-09
      • 1970-01-01
      • 2019-01-18
      • 2020-01-21
      • 2017-10-17
      • 1970-01-01
      • 2012-03-11
      • 1970-01-01
      • 2014-10-19
      相关资源
      最近更新 更多