Lightsail and bitnami
Setup htpassword for wordpress light sail
https://docs.bitnami.com/aws/apps/wordpress/administration/use-htpasswd/
sudo /opt/bitnami/apache2/bin/htpasswd -cb /opt/bitnami/apache2/wordpress_users fg clog-pallor-besides-upheave
sudo vi /opt/bitnami/apps/wordpress/conf/httpd-app.conf
<IfVersion >= 2.3>
# Require all granted
</IfVersion>
AuthType Basic
AuthName MyAuthName
AuthUserFile "/opt/bitnami/apache2/wordpress_users"
Require valid-user
sudo /opt/bitnami/ctlscript.sh restart apache
606b131a-8007-4a88-b765-0862bd9ddd25
Created on: 12th October, 2022
Last updated: 12th October, 2022
Source: Password-protect access to an application with Apache
Tagged With: