I am setting up a company intranet (extranet) and need to block all traffic requesting to the portal besides anyone connected to our VPN.
What I've tried
I've tried adding this to
<Directory /var/www/portal> Order deny,all Deny all Allow from <ip> </Directory>
What's happening is nothing. Not traffic is being blocked.
We are using Ubuntu as the server, and Apache2 as our webserver. We are using certbot to create the SSL cert (not sure if this helps or changes things.)