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
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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; }
}