Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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
Comment

PREVIOUS NEXT
Code Example
Shell :: journalctl clear logs 
Shell :: nuget install location 
Shell :: bootstrap vue cli install 
Shell :: git orphan branch and remove all data 
Shell :: kivy install windows 
Shell :: git see all tracked files 
Shell :: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure. plt.show() 
Shell :: linux remove all node_modules folders 
Shell :: composer list all installed packages 
Shell :: docker check running containers 
Shell :: php 7.4 all extensions 
Shell :: delete all container and images docker 
Shell :: linux free up ram 
Shell :: sh check if program exists 
Shell :: bash: bin/activate: No such file or directory 
Shell :: powershell parameter mandatory 
Shell :: linux invalid filename fix 
Shell :: push project to github 
Shell :: xdg check defult browser 
Shell :: git discard all changes 
Shell :: yandex browser not playing videos 
Shell :: valet: command not found 
Shell :: "enter passphrase for key" 
Shell :: php install apcu 
Shell :: decompress file gz in linux 
Shell :: mac anydesk start at login 
Shell :: linux rename folder add suffix 
Shell :: Error: ENOSPC: System limit for number of file watchers reached, 
Shell :: uninstall openshot linux 
Shell :: waybar emoji not wrok 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =