Skip to content

Instantly share code, notes, and snippets.

@adamchal
adamchal / ngx_http_upload_module.c
Created September 5, 2013 22:16
ngx_http_upload_module.c with patch applied so that Nginx Upload Module works with Nginx 1.4.2+. To use, replace the ngx_http_upload_module.c file in https://github.com/vkholodkov/nginx-upload-module with this Gist.
/*
* Copyright (C) 2006, 2008 Valery Kholodkov
* Client body reception code Copyright (c) 2002-2007 Igor Sysoev
* Temporary file name generation code Copyright (c) 2002-2007 Igor Sysoev
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
#include <nginx.h>
@adamchal
adamchal / access log configuration
Created March 6, 2012 18:55
Nginx Collapsing Empty Variables in Access Log
log_format main
'$server_name'
' $msec'
' $remote_addr'
' $http_user_agent'
' $cookie_uid'
' $cookie_sid'
' $cookie_lis'
' $cookie_ffs'
' $device_map'