apache basic auth setup
#install apache utilis
sudo apt-get install apache2 apache2-utils
#add apache user
sudo htpasswd -c /etc/apache2/.htpasswd some_username_here
#Setup Directory permissions in Apache Config
<Directory "/var/www/html">
AuthType Basic
AuthName "Restricted Content"
AuthUserFile /etc/apache2/.htpasswd
Require valid-user
</Directory>
#restart apache
sudo service apache2 restart
Also in Shell:
- Title
- clipboard in ubuntu
- Category
- Shell
- Title
- linux make executable
- Category
- Shell
- Title
- how to check swap memory in linux
- Category
- Shell
- Title
- ignore git ignore
- Category
- Shell
- Title
- install postfix dovecot ubuntu 16.04
- Category
- Shell
- Title
- linux check disk space
- Category
- Shell
- Title
- how to disconnect local repo from remote master
- Category
- Shell
- Title
- git remove branch
- Category
- Shell
- Title
- composer autoload dump
- Category
- Shell
- Title
- copy folders linux
- Category
- Shell
- Title
- mac brew: command not found
- Category
- Shell
- Title
- view permissions linux
- Category
- Shell
- Title
- linux unzip with password
- Category
- Shell
- Title
- find text in any file linux
- Category
- Shell
- Title
- foreach loop powershell
- Category
- Shell
- Title
- edit branch name git
- Category
- Shell
- Title
- how to add extension to all files terminal
- Category
- Shell
- Title
- delete a file in cmd windows
- Category
- Shell
- Title
- git how to delete origin branch
- Category
- Shell
- Title
- install putty on ubuntu
- Category
- Shell
- Title
- react native install
- Category
- Shell
- Title
- how to convert a multy digit array into a whole number
- Category
- Shell
- Title
- git push existing code to new repository
- Category
- Shell
- Title
- push code to github command line
- Category
- Shell