Protect /admin/ with 2-step authentication

Discussion in 'Setting-up protection' started by johnww, Jan 10, 2015.

  1. johnww

    johnww Member

    Oct 18, 2005
    Ubuntu 14 LTS
    Amember: 4.4.2

    We want to add some extra protection to the /admin/ folder. First we want to use "basic" apache protection, then we want to use the Google Authenticator for 2-step authentication.

    I have tried to set up "basic" apache authentication by placing the snippet below in the apache configuration files. This did not function correctly at all. In fact, it made apache hang.

    Any advice is welcome.

    <Directory "/home/printscience/public_html/am4usd/admin">
    DirectoryIndex index.php
    Options Indexes FollowSymLinks ExecCGI
    AuthType Basic
    AuthName "PrintScience protected area"
    AuthUserFile /etc/apache2/.htpasswd
    require valid-user
    AllowOverride None
    order deny,allow
    allow from all

Share This Page