-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sh
34 lines (31 loc) · 1 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
tar zxvf nginx-1.6.0.tar.gz
patch -p0 < https.patch
cd nginx-1.6.0/
#CFLAGS="-g -O0" ./configure --prefix=/etc/nginx \
./configure --prefix=/etc/nginx \
--sbin-path=/usr/sbin/nginx \
--conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--pid-path=/var/run/nginx.pid \
--lock-path=/var/run/nginx.lock \
--user=nginx --group=nginx \
--with-http_realip_module \
--with-http_addition_module \
--with-http_sub_module \
--with-http_dav_module \
--with-http_flv_module \
--with-http_mp4_module \
--with-http_gzip_static_module \
--with-http_random_index_module \
--with-http_secure_link_module \
--with-http_stub_status_module \
--with-file-aio \
--add-module=../add_modules/advertise_inject \
--add-module=../add_modules/http_gunzip \
--add-module=../add_modules/https_continue \
--add-module=../add_modules/proxy_connect \
--add-module=../add_modules/limit_traffic_rate \
--add-module=../add_modules/rewrite_request_body
make