summaryrefslogtreecommitdiff
path: root/public/fs
diff options
context:
space:
mode:
Diffstat (limited to 'public/fs')
-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;
+}