Closed herbetom closed 1 month ago
Hmpf. That burned the /download.html location. I knew I don't like permanents.
mhm, i overlooked that case. Sorry. I think #269 probably fixes that. Maybe test it first :see_no_evil:
Permanent is the redirect tpye which is beeing used by nginx to do such redirects. Thats why i used it ...
This seems like the quickest way to do this. One could probably look into wheter it's possible to teach templates/05-nginx-site-location.j2 how to figure this out on it's own or at least create some shortcut. But without the ability to test this i didn't want to try a more advanced way.
Additional Context:
Alias Locations should have a trailing slash to avoid path traversal: https://github.com/yandex/gixy/blob/master/docs/en/plugins/aliastraversal.md
Source: https://nginx.org/en/docs/http/ngx_http_core_module.html#location