From 05fb434cc68cf54fa24e1a837106eb473924d67b Mon Sep 17 00:00:00 2001 From: "root@culturestrings" Date: Mon, 18 May 2020 09:09:01 +0000 Subject: web: virtual hosts: added midipix.org. --- public/fs/etc/nginx/vhosts.d/midipix.org.conf | 33 +++++++++++++++++++++++ public/fs/etc/nginx/vhosts.d/www.midipix.org.conf | 33 +++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 public/fs/etc/nginx/vhosts.d/midipix.org.conf create mode 100644 public/fs/etc/nginx/vhosts.d/www.midipix.org.conf (limited to 'public') diff --git a/public/fs/etc/nginx/vhosts.d/midipix.org.conf b/public/fs/etc/nginx/vhosts.d/midipix.org.conf new file mode 100644 index 0000000..763b49a --- /dev/null +++ b/public/fs/etc/nginx/vhosts.d/midipix.org.conf @@ -0,0 +1,33 @@ +server { + listen [::]:80; + server_name midipix.org; + return 301 https://$server_name$request_uri; +} + +server { + listen [::]:443; + server_name midipix.org; + + location /dl { + root /srv/www/htdocs/$host; + fancyindex on; + ssi on; + } + + location /mirror { + root /srv/www/htdocs/$host; + fancyindex on; + ssi on; + } + + location / { + root /srv/www/htdocs/$host/; + index index.html index.htm; + ssi on; + } + + ssl_certificate /etc/nginx/certs.d/culturestrings.org/ssl/gandi/midipix.org.pem; + ssl_certificate_key /etc/nginx/certs.d/culturestrings.org/ssl/gandi/midipix.org.key; + + include conf.d/ssl_params; +} diff --git a/public/fs/etc/nginx/vhosts.d/www.midipix.org.conf b/public/fs/etc/nginx/vhosts.d/www.midipix.org.conf new file mode 100644 index 0000000..d9178ad --- /dev/null +++ b/public/fs/etc/nginx/vhosts.d/www.midipix.org.conf @@ -0,0 +1,33 @@ +server { + listen [::]:80; + server_name www.midipix.org; + return 301 https://$server_name$request_uri; +} + +server { + listen [::]:443; + server_name www.midipix.org; + + location /dl { + root /srv/www/htdocs/$host; + fancyindex on; + ssi on; + } + + location /mirror { + root /srv/www/htdocs/$host; + fancyindex on; + ssi on; + } + + location / { + root /srv/www/htdocs/$host/; + index index.html index.htm; + ssi on; + } + + ssl_certificate /etc/nginx/certs.d/culturestrings.org/ssl/gandi/midipix.org.pem; + ssl_certificate_key /etc/nginx/certs.d/culturestrings.org/ssl/gandi/midipix.org.key; + + include conf.d/ssl_params; +} -- cgit v1.2.3