This forum is no longer active. Please post your questions to our new community site

Forums WordPress

basic authentication

Subscribe to basic authentication 4 post(s), 2 voice(s)

Avatar gsp 2 post(s)


During website development and due to legal requirements from mastercard we need to password protect the site until compliance approval.

I there followed the how to here:….3f

but can’t manage to have it works. While the password is asked to enter the site at (user:test pw:testme) any call on subsites i.e will produce a 404 file not found error.

Without the basic authentication all sites exist and are accessible.

my wordpress.conf looks like this:
Alias /wordpress/ “/opt/bitnami/apps/wordpress/htdocs/”
Alias /wordpress “/opt/bitnami/apps/wordpress/htdocs”

<Directory “/opt/bitnami/apps/wordpress/htdocs”>
AuthType Basic
AuthName wordpress
AuthUserFile “/opt/bitnami/apache2/wordpress”
Require valid-user

I didn’t change anything on the httpd.conf file except:

DocumentRoot “/opt/bitnami/apps/wordpress/htdocs”

<Directory “/opt/bitnami/apps/wordpress/htdocs”>

I love the bitnami concept and run the instance on EC2 with no issues at all until now.

Thank you in advance for your help

Avatar Beltrán Rueda Administrator 3,714 post(s)


Take a look at… It is necessary to add the following line in the httpd.conf file:

<Directory "/opt/bitnami/apps/wordpress/htdocs">
    AllowOverride All
Avatar gsp 2 post(s)

thank you very much, muchas gracias! This solved my problem.

You should consider accepting donations, I for sure would make one.

Avatar Beltrán Rueda Administrator 3,714 post(s)

Thanks :) We really appreciate it! It would be great if you publish a comment about BitNami in your blog, twitter or facebook :)

Forums WordPress