Skip to content

Secure Directory with HtAccces

Step1 Create htaccess file
htpasswd -c passfile selim

I wish to secure  /usr/share/phpmyadmin

       < Directory "/usr/share/phpmyadmin" >
                Options -Indexes FollowSymLinks
                DirectoryIndex index.php
                AuthType Basic
                AuthName "Gesicherte Bereich"
                AuthUserFile /etc/phpmyadmin/passfile
                require valid-user
      < /Directory >