shell script

This commit is contained in:
2026-05-22 15:21:21 +08:00
parent b84371b88b
commit d3594007ad
62 changed files with 8965 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
#install tolls
apt install apache2-utils -y
#add user
htpasswd -c /etc/nginx/.htpasswd myuser
#change nginx configuration
location / {
auth_basic "Restricted Content";
auth_basic_user_file /etc/nginx/.htpasswd;
root /var/www/html;
index index.html index.htm;
}