Infini-OPTIPLEX: refactor testing site
This commit is contained in:
parent
c190d21228
commit
a71311222d
1 changed files with 11 additions and 8 deletions
|
@ -19,19 +19,22 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"test.inx.moe" = ssl // {
|
"test.inx.moe" = ssl // {
|
||||||
root = "/srv/web/inx.moe";
|
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
tryFiles = "$uri $uri.html =404";
|
root = "/srv/web/inx.moe";
|
||||||
|
tryFiles = "$uri $uri.html $uri/ =404";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
deny all;
|
deny all;
|
||||||
|
|
||||||
location ~ "\.(html|css|txt)" {
|
error_page 403 404 /404.html;
|
||||||
allow all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location = /template.html {
|
location = /template.html { deny all; }
|
||||||
deny all;
|
location /.git { deny all; }
|
||||||
};
|
|
||||||
|
location = /404.html { allow all; internal; }
|
||||||
|
|
||||||
|
location ~* "\.(html|css|txt)$" { allow all; }
|
||||||
|
location ~ "/[^.]+" { allow all; }
|
||||||
|
location ~ "/$" { allow all; }
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue