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)

Hi

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: http://wiki.bitnami.com/Components/Apache#How_t….3f

but can’t manage to have it works. While the password is asked to enter the site at http://globalsecurepayment.eu (user:test pw:testme) any call on subsites i.e http://globalsecurepayment.eu/merchant/ 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)

Hi,

Take a look at http://wiki.bitnami.com/Applications/BitNami_Wo… It is necessary to add the following line in the httpd.conf file:


<Directory "/opt/bitnami/apps/wordpress/htdocs">
    ...
    AllowOverride All
    ...
</Directory>
 
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