Improve page-lookup
This commit is contained in:
parent
abb11f9870
commit
7dce37ec90
1 changed files with 9 additions and 1 deletions
|
@ -5,9 +5,17 @@
|
|||
virtualHosts."blog.maralorn.de" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
root = "/var/cache/gc-links/blog";
|
||||
locations = {
|
||||
"~* \\.(?:ico|css|gif|jpe?g|png)$" = {
|
||||
extraConfig = ''
|
||||
rewrite ^(.*)\.[\d]+\.(css)$ $1.$2 last;
|
||||
expires 100y;
|
||||
add_header Pragma public;
|
||||
add_header Cache-Control "public";
|
||||
'';
|
||||
};
|
||||
"/" = {
|
||||
root = "/var/cache/gc-links/blog";
|
||||
tryFiles = "$uri $uri/index.html $uri.html";
|
||||
extraConfig = ''
|
||||
error_page 404 = /not-found.html;
|
||||
|
|
Loading…
Reference in a new issue