Nginx Using SNI Routing Xray and Website
Requirements
Nignx Separate Data Streams
Xray Configuration
Requirements
Nignx Separate Data Streams
Xray Configuration
Install Dependencies Download Nginx And Extension Source Code Extension Dependencies Generate Nginx Build Configuration With OpenSSL/LibreSSL Build & Install Nginx Configure Nginx
Install jemalloc From APT
Nginx 需要编译时加入–with-ld-opt=-ljemalloc
MySQL 需要根据启动方式的不同,修改 systemd 文件 / init.d文件
Build from souce 以使用最新的版本
使用模块准备 openssl-3.0.1cd /www/modwget https://www.openssl.org/source/openssl-3.0.5.tar.gztar xf openssl-3.0.5.tar.gz pcre-8.45cd /www/modwget https://iweb.dl.sourceforge.net/project/pcre/pcre/8.45/pcre-8.45.tar.gztar xf pcre-8.45.tar.gz zlib-cfcd /www/modgit clone https://github.com/cloudflare/zlib.git zlib-cf ; cd zlib-cfmake -f Makefile.in distclean ngx_brotlicd /www/modgit clone –recurse-submodules https://github.com/google/ngx_brotli.git ngx_http_rediswget https://people.freebsd.org/~osa/ngx_http_redis-0.3.9.tar.gztar xf ngx_http_redis-0.3.9.tar.gz lua-nginx-module redis2-nginx-modulecd /www/modgit clone https://github.com/openresty/redis2-nginx-module.git srcache-nginx-modulecd /www/modgit clone https://github.com/openresty/srcache-nginx-module.git set-misc-nginx-module cd /www/mod git clone https://github.com/openresty/set-misc-nginx-module.git headers-more-nginx-module echo-nginx-module ngx_devel_kitcd /www/modgit clone https://github.com/vision5/ngx_devel_kit.git Nginx Source Code … Read more