diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2025-02-04 17:26:54 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2025-02-04 17:26:54 +0800 |
commit | c230f549fe562e3ca4a1f16824aaea93ac11eaab (patch) | |
tree | 4d89a463200908f897a18fd7c870c11319c2a9d0 | |
parent | 88be69997cea29d9b45ae31f501d3ad1094dcec4 (diff) |
temp
-rw-r--r-- | nginx/Makefile | 8 | ||||
-rw-r--r-- | nginx/nginx.conf | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/nginx/Makefile b/nginx/Makefile index d14e24f..b36baf5 100644 --- a/nginx/Makefile +++ b/nginx/Makefile | |||
@@ -5,19 +5,19 @@ VERSION=1.27.3 | |||
5 | all: src /home/pham/git/ngx_http_proxy_connect_module | 5 | all: src /home/pham/git/ngx_http_proxy_connect_module |
6 | cd $< | 6 | cd $< |
7 | patch -p1 </home/pham/git/ngx_http_proxy_connect_module/patch/proxy_connect_rewrite_102101.patch | 7 | patch -p1 </home/pham/git/ngx_http_proxy_connect_module/patch/proxy_connect_rewrite_102101.patch |
8 | ./configure | ||
9 | nginx -V |& \ | 8 | nginx -V |& \ |
10 | sed -nE 's/^configure arguments: ([^\n]*)$$/\1/p' | \ | 9 | sed -nE 's/^configure arguments: ([^\n]*)$$/\1/p' | \ |
11 | sed -nE 's/([^'"'"' \t\n]+('"'"'([^'"'"'\]|\\'"'"'?)*'"'"'|"([^"\\]|\\"?)*")?) ?/\1\n/gp' | \ | 10 | sed -nE 's/([^'"'"' \t\n]+('"'"'([^'"'"'\]|\\'"'"'?)*'"'"'|"([^"\\]|\\"?)*")?) ?/\1\n/gp' | \ |
12 | xargs ./configure \ | 11 | xargs ./configure \ |
13 | --add-module=/home/pham/git/ngx_http_proxy_connect_module | 12 | --sbin-path=/usr/bin/nginx \ |
13 | --conf-path=/etc/nginx/nginx.conf \ | ||
14 | --add-module=/home/pham/git/ngx_http_proxy_connect_module \ | ||
14 | --with-http_dav_module \ | 15 | --with-http_dav_module \ |
15 | --with-http_image_filter_module \ | 16 | --with-http_image_filter_module \ |
16 | # --with-http_xslt_module=dynamic \ | 17 | --with-http_xslt_module |
17 | make modules | 18 | make modules |
18 | make | 19 | make |
19 | sudo make install | 20 | sudo make install |
20 | cd .. && rm -rf src | ||
21 | sudo ln -sf `pwd`/nginx.service /usr/lib/systemd/system/nginx.service | 21 | sudo ln -sf `pwd`/nginx.service /usr/lib/systemd/system/nginx.service |
22 | 22 | ||
23 | src: | 23 | src: |
diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 65eb733..d65af50 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf | |||
@@ -1,7 +1,7 @@ | |||
1 | load_module /usr/lib/nginx/modules/ngx_http_dav_ext_module.so; | 1 | #load_module /usr/lib/nginx/modules/ngx_http_dav_ext_module.so; |
2 | load_module /usr/lib/nginx/modules/ngx_http_xslt_filter_module.so; | 2 | #load_module /usr/lib/nginx/modules/ngx_http_xslt_filter_module.so; |
3 | #load_module /etc/nginx/modules/ngx_http_proxy_connect_module.so; | 3 | #load_module /etc/nginx/modules/ngx_http_proxy_connect_module.so; |
4 | load_module /usr/lib/nginx/modules/ngx_http_fancyindex_module.so; | 4 | #load_module /usr/lib/nginx/modules/ngx_http_fancyindex_module.so; |
5 | 5 | ||
6 | 6 | ||
7 | user pham; | 7 | user pham; |