mirror of
				https://github.com/openresty/openresty.git
				synced 2024-10-13 00:29:41 +00:00 
			
		
		
		
	checked in the patches for nginx 1.5.3; also applied the unix_socket_accept_over_read patch the nginx cores older than 1.5.3.
This commit is contained in:
		
							
								
								
									
										26
									
								
								patches/nginx-1.5.3-server_header.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								patches/nginx-1.5.3-server_header.patch
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,26 @@ | ||||
| diff -ur lz-nginx-1.5.3/nginx-1.5.3/src/core/nginx.h lz-nginx-1.5.3-patched/nginx-1.5.3/src/core/nginx.h | ||||
| --- lz-nginx-1.5.3/nginx-1.5.3/src/core/nginx.h	2010-02-12 17:31:01.000000000 +0800 | ||||
| +++ lz-nginx-1.5.3-patched/nginx-1.5.3/src/core/nginx.h	2010-03-30 10:52:13.240702627 +0800 | ||||
| @@ -10,7 +10,7 @@ | ||||
|   | ||||
|  #define nginx_version         1005003 | ||||
|  #define NGINX_VERSION      "1.5.3" | ||||
| -#define NGINX_VER          "nginx/" NGINX_VERSION | ||||
| +#define NGINX_VER          "ngx_openresty/" NGINX_VERSION ".unknown" | ||||
|   | ||||
|  #define NGINX_VAR          "NGINX" | ||||
|  #define NGX_OLDPID_EXT     ".oldbin" | ||||
| Only in lz-nginx-1.5.3-patched/nginx-1.5.3/src/core: nginx.h.orig | ||||
| Only in lz-nginx-1.5.3-patched/nginx-1.5.3/src/core: nginx.h.rej | ||||
| diff -ur lz-nginx-1.5.3/nginx-1.5.3/src/http/ngx_http_header_filter_module.c lz-nginx-1.5.3-patched/nginx-1.5.3/src/http/ngx_http_header_filter_module.c | ||||
| --- lz-nginx-1.5.3/nginx-1.5.3/src/http/ngx_http_header_filter_module.c	2010-03-03 23:14:04.000000000 +0800 | ||||
| +++ lz-nginx-1.5.3-patched/nginx-1.5.3/src/http/ngx_http_header_filter_module.c	2010-03-30 10:52:53.670909405 +0800 | ||||
| @@ -45,7 +45,7 @@ | ||||
|  }; | ||||
|   | ||||
|   | ||||
| -static char ngx_http_server_string[] = "Server: nginx" CRLF; | ||||
| +static char ngx_http_server_string[] = "Server: ngx_openresty" CRLF; | ||||
|  static char ngx_http_server_full_string[] = "Server: " NGINX_VER CRLF; | ||||
|   | ||||
|   | ||||
		Reference in New Issue
	
	Block a user