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 18.104.22.168 Require ip 22.214.171.124 </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.