summaryrefslogtreecommitdiff
path: root/platform/etc/nginx/www.conf.sample
diff options
context:
space:
mode:
Diffstat (limited to 'platform/etc/nginx/www.conf.sample')
-rw-r--r--platform/etc/nginx/www.conf.sample34
1 files changed, 33 insertions, 1 deletions
diff --git a/platform/etc/nginx/www.conf.sample b/platform/etc/nginx/www.conf.sample
index cacddaa..1243549 100644
--- a/platform/etc/nginx/www.conf.sample
+++ b/platform/etc/nginx/www.conf.sample
@@ -1,6 +1,6 @@
server {
listen 80;
- server_name acerv.uz *.acerv.uz;
+ server_name acerv.us *.acerv.us;
root /srv/acerv.us/platform/www/;
error_log /srv/acerv.us/platform/log/nginx.error error;
@@ -40,3 +40,35 @@ server {
fastcgi_buffering off;
}
}
+
+# Define the subsites
+
+server {
+ if ($host = esteva.acerv.us) {
+ return 301 https://$host$request_uri;
+ } # managed by Certbot
+
+
+ if ($host = cidoc.acerv.us) {
+ return 301 https://$host$request_uri;
+ } # managed by Certbot
+
+
+ if ($host = illich.acerv.us) {
+ return 301 https://$host$request_uri;
+ } # managed by Certbot
+
+
+ if ($host = acerv.us) {
+ return 301 https://$host$request_uri;
+ } # managed by Certbot
+
+ if ($host = *.acerv.us) {
+ return 301 https://$host$request_uri;
+ } # managed by Certbot
+
+ listen 80;
+ server_name acerv.us *.acerv.us;
+ return 404; # managed by Certbot
+
+}