Skip to content

Commit

Permalink
re-order more like next
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn committed Dec 2, 2024
1 parent 2792708 commit eea052d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions files/nginx/redirector.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
server {
server_name ${DOMAIN};
# Listen on plain old HTTP and catch all requests so they can be redirected
# to HTTPS instead.
listen 80 reuseport;
server_name ${DOMAIN};

# Anything requesting this particular URL should be served content from
# Certbot's folder so the HTTP-01 ACME challenges can be completed for the
Expand All @@ -20,11 +20,9 @@ server {
}

server {
server_name _;
# Listen on plain old HTTP and catch all requests so they can be redirected
# to HTTPS instead.
listen 80 default_server;
listen [::]:80 default_server;
server_name _;

return 421;
}

0 comments on commit eea052d

Please sign in to comment.