nginx: [emerg] unknown directive "upload_pass" after dist-upgrade from Ubuntu 12.04 LTS to 14.04 LTS

Ben Johnson ben at
Fri Aug 22 02:34:17 UTC 2014

On 8/21/2014 9:02 PM, Ben Johnson wrote:
> # nginx -V
> nginx version: nginx/1.6.0

I should add also that immediately after the upgrade from version 12.04
to 14.04 of my OS, this problem was present, and my nginx version was
1.4.6. The reason for which my current config (quoted above) shows 1.6.0
is that I followed these instructions when trying to build nginx with
every module I have needed in the past, in an effort to troubleshoot
this problem:

What's puzzling me most is that I only ever remember having to install
the in any "special way".
And by "special way", I think I simply switched from Ubuntu's
"nginx-core" to "nginx-extras" package when first I "got everything

Is this module ( , to which the
"upload_pass" directive applies) built into the core of nginx? I ask
mostly because when I built nginx from source (the 1.6.0 version), the
"extras" config section mentions nothing of the module in question
(that's causing the fatal upon nginx start-up):

(from "nginx-1.6.0/debian/rules"):

# ...
extras_configure_flags := \
			$(common_configure_flags) \
			--with-http_addition_module \
			--with-http_dav_module \
			--with-http_flv_module \
			--with-http_geoip_module \
			--with-http_gzip_static_module \
			--with-http_image_filter_module \
			--with-http_mp4_module \
			--with-http_perl_module \
			--with-http_random_index_module \
			--with-http_secure_link_module \
			--with-http_spdy_module \
			--with-http_sub_module \
			--with-http_xslt_module \
			--with-mail \
			--with-mail_ssl_module \
			--add-module=$(MODULESDIR)/headers-more-nginx-module \
			--add-module=$(MODULESDIR)/nginx-auth-pam \
			--add-module=$(MODULESDIR)/nginx-cache-purge \
			--add-module=$(MODULESDIR)/nginx-dav-ext-module \
			--add-module=$(MODULESDIR)/nginx-development-kit \
			--add-module=$(MODULESDIR)/nginx-echo \
			--add-module=$(MODULESDIR)/ngx-fancyindex \
			--add-module=$(MODULESDIR)/nginx-http-push \
			--add-module=$(MODULESDIR)/nginx-lua \
			--add-module=$(MODULESDIR)/nginx-upload-progress \
			--add-module=$(MODULESDIR)/nginx-upstream-fair \
# ...

I see the line for the "HttpUploadProgressModule", as described at , but this is a different
module, correct?

Thanks again for any assistance,


More information about the nginx mailing list