]> Untitled Git - proxy.git/commitdiff
Catch-all server block
authorClifton Palmer <clifton.james.palmer@protonmail.com>
Sun, 23 Jan 2022 19:04:43 +0000 (13:04 -0600)
committerClifton Palmer <clifton.james.palmer@protonmail.com>
Sun, 23 Jan 2022 19:04:43 +0000 (13:04 -0600)
nginx.conf

index ffc401dce81fb1d8d34dafce609dd0724624626d..50518ed03313603f7a6170f103ecd21eaa862234 100644 (file)
@@ -34,4 +34,18 @@ http {
             proxy_set_header Host $host;
         }
     }
+
+    # catch-all server for both http and https
+    server {
+        listen *:80 default_server;
+        listen *:443 default_server;
+        server_name _;
+
+        # Your SSL configuration
+        #ssl_certificate     /etc/nginx/ssl/example.com/ssl-bundle.crt;
+        #ssl_certificate_key /etc/nginx/ssl/example.com/example.com.key;
+
+        # Redirect to canonical site
+        #rewrite ^/(.*)$ http://example.com/$1 permanent;
+    }
 }