From caaf9f5606ebdf2ca9c7366c88ed7dffa2e8d7ae Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Sat, 9 Apr 2016 21:14:57 +0200 Subject: [PATCH] Add .space domain for web. --- roles/web/files/vhost | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/roles/web/files/vhost b/roles/web/files/vhost index b971da0..38f2478 100644 --- a/roles/web/files/vhost +++ b/roles/web/files/vhost @@ -2,7 +2,7 @@ server { listen 80; listen [::]:80; - server_name binary-kitchen.de www.binary-kitchen.de binary-kitchen.com www.binary-kitchen.com binary-kitchen.net www.binary-kitchen.net binary.kitchen www.binary.kitchen; + server_name binary-kitchen.de www.binary-kitchen.de binary-kitchen.com www.binary-kitchen.com binary-kitchen.net www.binary-kitchen.net binary-kitchen.space www.binary-kitchen.space binary.kitchen www.binary.kitchen; location /.well-known/acme-challenge { default_type "text/plain"; @@ -14,6 +14,19 @@ server { } } +server { + listen 80; + listen [::]:80; + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name static.binary-kitchen.de; + + location / { + return 301 https://www.binary-kitchen.de/static/$request_uri; + } +} + server { listen 443 ssl http2; listen [::]:443 ssl http2; @@ -41,6 +54,10 @@ server { deny all; } + location /static { + autoindex on; + } + location ~ \.php(?:$|/) { fastcgi_split_path_info ^(.+\.php)(/.+)$; include fastcgi_params;