Add redirect for www subdomain to main page

This commit is contained in:
Evie Litherland-Smith 2024-04-08 11:46:33 +01:00
parent cbd7c41938
commit ca4f2d055a

View file

@ -4,6 +4,9 @@
enable = true; enable = true;
email = "evie@xenia.me.uk"; email = "evie@xenia.me.uk";
virtualHosts = { virtualHosts = {
"www.xenia.me.uk".extraConfig = ''
redir https://xenia.me.uk
'';
"xenia.me.uk".extraConfig = '' "xenia.me.uk".extraConfig = ''
file_server * { file_server * {
root /var/www/landing/ root /var/www/landing/