added add_location.sh

This commit is contained in:
2025-12-03 17:09:07 +00:00
parent e7128e8652
commit 8c976051ab
7 changed files with 101 additions and 14 deletions

View File

@@ -0,0 +1,17 @@
server {
# Listen on port 80 for standard HTTP traffic
listen 80;
# Specify the domain name this block should respond to
server_name SERVER_NAME;
location .well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
# Redirect all HTTP requests to HTTPS
return 301 https://$host$request_uri;
}
}