]> Untitled Git - proxy.git/blobdiff - nginx.conf
Catch-all server block
[proxy.git] / nginx.conf
index 5a3445582bc2367f352cc49768ad4c797ba8e32c..50518ed03313603f7a6170f103ecd21eaa862234 100644 (file)
@@ -12,6 +12,13 @@ http {
             proxy_set_header Host $host;
         }
     }
             proxy_set_header Host $host;
         }
     }
+    server {
+        server_name movies.purplebirdman.com;
+        location / {
+            proxy_pass http://public_movies_web;
+            proxy_set_header Host $host;
+        }
+    }
     server {
         server_name go.purplebirdman.com;
         location / {
     server {
         server_name go.purplebirdman.com;
         location / {
@@ -27,4 +34,18 @@ http {
             proxy_set_header Host $host;
         }
     }
             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;
+    }
 }
 }