mirror of
				https://github.com/thib8956/nginx-proxy
				synced 2025-11-04 11:09:20 +00:00 
			
		
		
		
	fix: Remove default_server listen option from fallback server
				
					
				
			This fixes a bug introduced in commit
9b4bb07b34.
			
			
This commit is contained in:
		
							
								
								
									
										5
									
								
								test/test_fallback.data/custom-fallback.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								test/test_fallback.data/custom-fallback.conf
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
server {
 | 
			
		||||
    server_name __;
 | 
			
		||||
    listen 80 default_server;
 | 
			
		||||
    return 418;
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										14
									
								
								test/test_fallback.data/custom-fallback.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								test/test_fallback.data/custom-fallback.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,14 @@
 | 
			
		||||
services:
 | 
			
		||||
  sut:
 | 
			
		||||
    image: nginxproxy/nginx-proxy:test
 | 
			
		||||
    volumes:
 | 
			
		||||
      - /var/run/docker.sock:/tmp/docker.sock:ro
 | 
			
		||||
      - ./custom-fallback.conf:/etc/nginx/conf.d/zzz-custom-fallback.conf:ro
 | 
			
		||||
  http-only:
 | 
			
		||||
    image: web
 | 
			
		||||
    expose:
 | 
			
		||||
      - "83"
 | 
			
		||||
    environment:
 | 
			
		||||
      WEB_PORTS: "83"
 | 
			
		||||
      VIRTUAL_HOST: http-only.nginx-proxy.test
 | 
			
		||||
      HTTPS_METHOD: nohttps
 | 
			
		||||
		Reference in New Issue
	
	Block a user