| 
														
															@@ -44,7 +44,7 @@ CONNECTION_REFUSED_RE = re.compile("Connection refused") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     ("withdefault.yml", "https://https-only.nginx-proxy.test/", 200, None), 
														 | 
														
														 | 
														
															     ("withdefault.yml", "https://https-only.nginx-proxy.test/", 200, None), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     ("withdefault.yml", "http://http-only.nginx-proxy.test/", 200, None), 
														 | 
														
														 | 
														
															     ("withdefault.yml", "http://http-only.nginx-proxy.test/", 200, None), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     ("withdefault.yml", "https://http-only.nginx-proxy.test/", 503, None), 
														 | 
														
														 | 
														
															     ("withdefault.yml", "https://http-only.nginx-proxy.test/", 503, None), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    ("withdefault.yml", "http://missing-cert.nginx-proxy.test/", 200, None), 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    ("withdefault.yml", "http://missing-cert.nginx-proxy.test/", 301, None), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     ("withdefault.yml", "https://missing-cert.nginx-proxy.test/", 500, None), 
														 | 
														
														 | 
														
															     ("withdefault.yml", "https://missing-cert.nginx-proxy.test/", 500, None), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     ("withdefault.yml", "http://unknown.nginx-proxy.test/", 503, None), 
														 | 
														
														 | 
														
															     ("withdefault.yml", "http://unknown.nginx-proxy.test/", 503, None), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     ("withdefault.yml", "https://unknown.nginx-proxy.test/", 503, None), 
														 | 
														
														 | 
														
															     ("withdefault.yml", "https://unknown.nginx-proxy.test/", 503, None), 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -55,7 +55,7 @@ CONNECTION_REFUSED_RE = re.compile("Connection refused") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     ("nodefault.yml", "https://https-only.nginx-proxy.test/", 200, None), 
														 | 
														
														 | 
														
															     ("nodefault.yml", "https://https-only.nginx-proxy.test/", 200, None), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     ("nodefault.yml", "http://http-only.nginx-proxy.test/", 200, None), 
														 | 
														
														 | 
														
															     ("nodefault.yml", "http://http-only.nginx-proxy.test/", 200, None), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     ("nodefault.yml", "https://http-only.nginx-proxy.test/", None, INTERNAL_ERR_RE), 
														 | 
														
														 | 
														
															     ("nodefault.yml", "https://http-only.nginx-proxy.test/", None, INTERNAL_ERR_RE), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    ("nodefault.yml", "http://missing-cert.nginx-proxy.test/", 200, None), 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    ("nodefault.yml", "http://missing-cert.nginx-proxy.test/", 301, None), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     ("nodefault.yml", "https://missing-cert.nginx-proxy.test/", None, INTERNAL_ERR_RE), 
														 | 
														
														 | 
														
															     ("nodefault.yml", "https://missing-cert.nginx-proxy.test/", None, INTERNAL_ERR_RE), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     ("nodefault.yml", "http://unknown.nginx-proxy.test/", 503, None), 
														 | 
														
														 | 
														
															     ("nodefault.yml", "http://unknown.nginx-proxy.test/", 503, None), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     ("nodefault.yml", "https://unknown.nginx-proxy.test/", None, INTERNAL_ERR_RE), 
														 | 
														
														 | 
														
															     ("nodefault.yml", "https://unknown.nginx-proxy.test/", None, INTERNAL_ERR_RE), 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -69,15 +69,13 @@ CONNECTION_REFUSED_RE = re.compile("Connection refused") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     ("nohttp-on-app.yml", "https://https-only.nginx-proxy.test/", 200, None), 
														 | 
														
														 | 
														
															     ("nohttp-on-app.yml", "https://https-only.nginx-proxy.test/", 200, None), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     ("nohttp-on-app.yml", "http://unknown.nginx-proxy.test/", None, CONNECTION_REFUSED_RE), 
														 | 
														
														 | 
														
															     ("nohttp-on-app.yml", "http://unknown.nginx-proxy.test/", None, CONNECTION_REFUSED_RE), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     ("nohttp-on-app.yml", "https://unknown.nginx-proxy.test/", 503, None), 
														 | 
														
														 | 
														
															     ("nohttp-on-app.yml", "https://unknown.nginx-proxy.test/", 503, None), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    # Same as nohttp.yml, except there is a vhost with a missing cert.  This causes its 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    # HTTPS_METHOD=nohttp setting to effectively become HTTPS_METHOD=noredirect.  This means that 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    # there will be a plain http server solely to support that vhost, so http requests to other 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    # vhosts get a 503, not a connection refused error. 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    ("nohttp-with-missing-cert.yml", "http://https-only.nginx-proxy.test/", 503, None), 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    # Same as nohttp.yml, except there is a vhost with a missing cert.  The missing cert should not 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    # cause that vhost to downgrade from https to http. 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    ("nohttp-with-missing-cert.yml", "http://https-only.nginx-proxy.test/", None, CONNECTION_REFUSED_RE), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     ("nohttp-with-missing-cert.yml", "https://https-only.nginx-proxy.test/", 200, None), 
														 | 
														
														 | 
														
															     ("nohttp-with-missing-cert.yml", "https://https-only.nginx-proxy.test/", 200, None), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    ("nohttp-with-missing-cert.yml", "http://missing-cert.nginx-proxy.test/", 200, None), 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    ("nohttp-with-missing-cert.yml", "http://missing-cert.nginx-proxy.test/", None, CONNECTION_REFUSED_RE), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     ("nohttp-with-missing-cert.yml", "https://missing-cert.nginx-proxy.test/", 500, None), 
														 | 
														
														 | 
														
															     ("nohttp-with-missing-cert.yml", "https://missing-cert.nginx-proxy.test/", 500, None), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    ("nohttp-with-missing-cert.yml", "http://unknown.nginx-proxy.test/", 503, None), 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    ("nohttp-with-missing-cert.yml", "http://unknown.nginx-proxy.test/", None, CONNECTION_REFUSED_RE), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     ("nohttp-with-missing-cert.yml", "https://unknown.nginx-proxy.test/", 503, None), 
														 | 
														
														 | 
														
															     ("nohttp-with-missing-cert.yml", "https://unknown.nginx-proxy.test/", 503, None), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     # HTTPS_METHOD=nohttps on nginx-proxy, HTTPS_METHOD unset on the app container. 
														 | 
														
														 | 
														
															     # HTTPS_METHOD=nohttps on nginx-proxy, HTTPS_METHOD unset on the app container. 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     ("nohttps.yml", "http://http-only.nginx-proxy.test/", 200, None), 
														 | 
														
														 | 
														
															     ("nohttps.yml", "http://http-only.nginx-proxy.test/", 200, None), 
														 |