Apache - Restrict to IP not working

后端 未结 3 863
小鲜肉
小鲜肉 2021-02-07 17:31

I\'ve a subdomain that I only want to be accessible internally; I\'m trying to achieve this in Apache by editing the VirtualHost block for that domain. Can anybody see where I\'

3条回答
  •  一整个雨季
    2021-02-07 17:43

    The problem is your allow line for the local network. Replace Allow from 192.168.10.0/24 with Allow from 192.168.10. (will allow 192.168.10.*).

    For completeness, add a Deny from all line to make it clear that you're blocking everyone else.

提交回复
热议问题