I'm trying to block a subdirectory on my website that is open to the public. Nothing I've tried has been successful. Is this section from my conf enough to determine what's wrong?
This is on Apache 2.4.
<Directory /var/www/vhosts/website.example> AllowOverride None </Directory> <Directory /var/www/vhosts/website.example/private> AllowOverride None <RequireAny> Require ip 184.108.40.206 Require ip 220.127.116.11 </RequireAny> </Directory>
Update: This issue has been solved. I stupidly forgot to include "httpdocs" in both of the
Directory lines. After correcting that error the access by IP works as expected.