summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot@culturestrings <root@culturestrings>2020-05-18 09:09:01 +0000
committerroot@culturestrings <root@culturestrings>2020-05-18 09:09:01 +0000
commit05fb434cc68cf54fa24e1a837106eb473924d67b (patch)
treeb488f6bffb590da7f605fc8f7a5359de682428da
parent471b9f4550fa5f964a660ebbca42cb2e2408f3a0 (diff)
downloadculturestrings-05fb434cc68cf54fa24e1a837106eb473924d67b.tar.bz2
culturestrings-05fb434cc68cf54fa24e1a837106eb473924d67b.tar.xz
web: virtual hosts: added midipix.org.
-rw-r--r--public/fs/etc/nginx/vhosts.d/midipix.org.conf33
-rw-r--r--public/fs/etc/nginx/vhosts.d/www.midipix.org.conf33
2 files changed, 66 insertions, 0 deletions
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;
+}