2019-08-12 10:49:51 +01:00
|
|
|
{% for location in gones %}
|
|
|
|
location /{{ location }} {
|
|
|
|
return 410;
|
|
|
|
}
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% for location in gones_re %}
|
|
|
|
location ~ {{ location }} {
|
|
|
|
return 410;
|
|
|
|
}
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% for from, to in redirects.items() %}
|
|
|
|
location /{{ from }} {
|
|
|
|
return 301 {{ to }};
|
|
|
|
}
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% for source, target in rewrites.items() %}
|
2019-10-19 10:05:54 +01:00
|
|
|
rewrite {{ source }} {{ target}} permanent;
|
2019-08-12 10:49:51 +01:00
|
|
|
{% endfor %}
|