Skip to content
Snippets Groups Projects
Verified Commit 19729789 authored by Jelle van der Waa's avatar Jelle van der Waa :construction:
Browse files

Without a location nginx will always return

Without a location block, nginx always executes the return block causing
a 302 which makes certbot unable to renew as it follows redirects.
parent 498d5304
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,8 @@ server {
include snippets/letsencrypt.conf;
return {{ redirect.type }} {{ redirect.to }};
location / {
return {{ redirect.type }} {{ redirect.to }};
}
}
{% endfor %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment