added add_location.sh
This commit is contained in:
17
config/nginx/template/http_location.conf
Normal file
17
config/nginx/template/http_location.conf
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user