summaryrefslogtreecommitdiffstats
path: root/files/etc/nginx
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2024-02-06 17:01:30 +0100
committerGuilhem Moulin <guilhem@fripost.org>2024-02-15 14:15:13 +0100
commitd74a10cbc6abe451c39eef30b6c610d916090448 (patch)
tree02a9457925476463ed03332ac25f3ecf53de8f2e /files/etc/nginx
parent3b8151bbaeb569753fc9ddcb4d66af40c2de036a (diff)
HTTPd: Set vhost karta.klimatanalysnorr.se.
Diffstat (limited to 'files/etc/nginx')
-rw-r--r--files/etc/nginx/sites-enabled/webmap28
1 files changed, 23 insertions, 5 deletions
diff --git a/files/etc/nginx/sites-enabled/webmap b/files/etc/nginx/sites-enabled/webmap
index e967535..d16ab60 100644
--- a/files/etc/nginx/sites-enabled/webmap
+++ b/files/etc/nginx/sites-enabled/webmap
@@ -2,7 +2,7 @@ server {
listen 80;
listen [::]:80;
- server_name hel01.guilhem.se;
+ server_name karta.klimatanalysnorr.se hel01.guilhem.se;
include /etc/lacme/nginx.conf;
@@ -15,16 +15,34 @@ server {
}
server {
- listen 443 ssl http2;
- listen [::]:443 ssl http2;
+ listen 443;
+ listen [::]:443;
server_name hel01.guilhem.se;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log warn;
- ssl_certificate /etc/nginx/ssl/hel01.rsa.pem;
- ssl_certificate_key /etc/nginx/ssl/hel01.rsa.key;
+ ssl_certificate /etc/nginx/ssl/webmap.rsa.pem;
+ ssl_certificate_key /etc/nginx/ssl/webmap.rsa.key;
+ include snippets/ssl.conf;
+
+ location / {
+ return 303 https://karta.klimatanalysnorr.se$request_uri;
+ }
+}
+
+server {
+ listen 443 ssl http2 default_server;
+ listen [::]:443 ssl http2 default_server;
+
+ server_name karta.klimatanalysnorr.se;
+
+ access_log /var/log/nginx/access.log;
+ error_log /var/log/nginx/error.log warn;
+
+ ssl_certificate /etc/nginx/ssl/webmap.rsa.pem;
+ ssl_certificate_key /etc/nginx/ssl/webmap.rsa.key;
include snippets/ssl.conf;
add_header Referrer-Policy "no-referrer";