Jaap Marcus 5 лет назад
Родитель
Сommit
2b4d35092d
1 измененных файлов с 16 добавлено и 0 удалено
  1. 16 0
      install/deb/templates/web/nginx/proxy_ip.tpl

+ 16 - 0
install/deb/templates/web/nginx/proxy_ip.tpl

@@ -12,3 +12,19 @@ server {
    }
 }
 
+server {
+    listen      %ip%:%proxy_ssl_port% ssl http2;
+    server_name _;
+    ssl_certificate      /usr/local/hestia/ssl/certificate.crt;
+    ssl_certificate_key  /usr/local/hestia/ssl/certificate.key;
+
+    return 301 http://$host$request_uri;
+
+    location / {
+        root /var/www/document_errors/;
+    }
+
+    location /error/ {
+        alias /var/www/document_errors/;
+    }
+}