modules: services: blog: better blog redirection
This commit is contained in:
parent
9c36d65d80
commit
5d9524dbdf
|
@ -23,13 +23,21 @@ in
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
useACMEHost = domain;
|
useACMEHost = domain;
|
||||||
root = "/var/www/blog";
|
root = "/var/www/blog";
|
||||||
default = true; # Redirect to my blog
|
|
||||||
|
|
||||||
# http://www.gnuterrypratchett.com/
|
# http://www.gnuterrypratchett.com/
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
add_header X-Clacks-Overhead "GNU Terry Pratchett";
|
add_header X-Clacks-Overhead "GNU Terry Pratchett";
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Dummy vhost to redirect all unknown (sub-)domains to my blog
|
||||||
|
"_" = {
|
||||||
|
forceSSL = true;
|
||||||
|
useACMEHost = domain;
|
||||||
|
default = true;
|
||||||
|
|
||||||
|
locations."/".return = "301 https://belanyi.fr$request_uri";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Those are all subdomains, no problem
|
# Those are all subdomains, no problem
|
||||||
|
|
Loading…
Reference in a new issue