Access controls in Apache
There are various ways in which you can control access to a resource in Apache.
<VirtualHost *:443>
ServerName my-test.site
ServerAdmin [email protected]
DocumentRoot /var/www/my-test.site
<Directory /var/www/my-test.site>
Options Indexes FollowSymLinks
AllowOverride AuthConfig
Require all granted
</Directory>
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/my-test.site/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/my-test.site/privkey.pem
</VirtualHost>Protecting a directory with a username and a password
Combining a username with the directive "Satisfy any"
Blocking IP address
More information
Last updated
Was this helpful?