Skip to content
Snippets Groups Projects
Commit b7c0865d authored by nimrod's avatar nimrod
Browse files

Give precedence to the acme challenge.

If the acme challenge is in a location block but the default redirection
is not, the default always takes precedence (Nginx won't resolve the
order between the different directives, but it will between different
location blocks).
parent e0bc90be
No related branches found
No related tags found
No related merge requests found
Pipeline #1439 passed
......@@ -2,12 +2,12 @@ server {
listen 80 default_server;
listen [::]:80 default_server;
include snippets/www-acme-challenge.conf;
return 301 https://www.shore.co.il$request_uri;
location / { return 301 https://www.shore.co.il$request_uri; }
}
server {
listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server;
include snippets/ssl.conf;
return 301 https://www.shore.co.il$request_uri;
location / { return 301 https://www.shore.co.il$request_uri; }
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment