Apache - Restrict to IP not working

后端 未结 3 856
小鲜肉
小鲜肉 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 18:06

    You're missing the Deny from all line? Oh, and using the wrong order.

    Quoting the mod_access docs:

    [...] all hosts in the apache.org domain are allowed access; all other hosts are denied access.

    Order Deny,Allow
    Deny from all
    Allow from apache.org
    

提交回复
热议问题