mirror of
https://github.com/thegeneralist01/config.git
synced 2026-03-07 10:59:55 +01:00
site: fix redirect issues
This commit is contained in:
parent
4826f1fe64
commit
41d3da9bb3
1 changed files with 2 additions and 4 deletions
|
|
@ -56,12 +56,10 @@ in
|
|||
|
||||
virtualHosts."${family_domain}" = {
|
||||
root = "/var/www/${family_domain}/dist";
|
||||
locations."/".tryFiles = "$uri $uri.html $uri/ $uri/index.html =404";
|
||||
locations."/".tryFiles = "$uri $uri/index.html $uri.html =404";
|
||||
|
||||
extraConfig = ''
|
||||
if ($http_x_forwarded_proto = "http") {
|
||||
return 301 https://${family_domain}$request_uri;
|
||||
}
|
||||
absolute_redirect off;
|
||||
|
||||
location ~* \.(html|css|js|jpg|jpeg|png|gif|svg|ico|woff2?)$ {
|
||||
expires 1d;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue