mirror of
				https://github.com/mashirozx/docker-php-nginx.git
				synced 2025-05-29 01:49:24 +08:00 
			
		
		
		
	Merge pull request #10 from mrvnklm/master
Added nginx location for FPM ping
This commit is contained in:
		
						commit
						acf639ead2
					
				@ -65,5 +65,16 @@ http {
 | 
			
		||||
            log_not_found off;
 | 
			
		||||
            deny all;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        # allow fpm ping and status from localhost
 | 
			
		||||
        #
 | 
			
		||||
        location ~ ^/(fpm-status|fpm-ping)$ {
 | 
			
		||||
            access_log off;
 | 
			
		||||
            allow 127.0.0.1;
 | 
			
		||||
            deny all;
 | 
			
		||||
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
 | 
			
		||||
            include fastcgi_params;
 | 
			
		||||
            fastcgi_pass 127.0.0.1:9000;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user