自定义nginx版本号
%buildsed -i'/NGINX_VERSION/{s/1.4.2/114/g}'src/core/nginx.h
./configure \
--prefix=%{_sysconfdir}/nginx \
--sbin-path=%{_sbindir}/nginx \
--conf-path=%{_sysconfdir}/nginx/nginx.conf \
--error-log-path=%{_localstatedir}/log/nginx/error.log \
--http-log-path=%{_localstatedir}/log/nginx/access.log \
--pid-path=%{_localstatedir}/run/nginx.pid \
--lock-path=%{_localstatedir}/run/nginx.lock \
--http-client-body-temp-path=%{_localstatedir}/cache/nginx/client_temp \
--http-proxy-temp-path=%{_localstatedir}/cache/nginx/proxy_temp \
--http-fastcgi-temp-path=%{_localstatedir}/cache/nginx/fastcgi_temp \
--http-uwsgi-temp-path=%{_localstatedir}/cache/nginx/uwsgi_temp \
--http-scgi-temp-path=%{_localstatedir}/cache/nginx/scgi_temp \
--user=%{nginx_user} \
--group=%{nginx_group} \
--with-http_ssl_module \
--with-http_realip_module \
--with-http_gzip_static_module \
--with-http_stub_status_module \
--with-google_perftools_module \
--add-module=%{_builddir}/nginx-%{version}/nginx_upstream_hash \
--add-module=%{_builddir}/nginx-%{version}/naxsi-core-0.50/naxsi_src \
--add-module=%{_builddir}/nginx-%{version}/ngx_cache_purge \
--add-module=%{_builddir}/nginx-%{version}/ngx_pagespeed-release-1.6.29.5-beta\
--add-module=%{_builddir}/nginx-%{version}/nginx-sticky-module-1.1\
--with-file-aio \
--with-debug \
--with-cc-opt="%{optflags} $(pcre-config --cflags)" \
$*
make %{?_smp_mflags}
页:
[1]