nginx x-forward-for

node2:/etc/nginx#cat nginx.conf
# Copyright (C) 2019 by chrono

# you can run openresty on linux
# sudo /usr/local/openresty/bin/openresty -p ..
# sudo /usr/local/openresty/bin/openresty -p .. -s stop
# sudo /usr/local/openresty/bin/openresty -p .. -s reload

# wget https://www.openssl.org/source/openssl-1.1.1b.tar.gz
# ./configure --with-openssl=$HOME/Downloads/openssl-1.1.1b  --with-openssl-opt='enable-tls1_3' --with-http_v2_module

#user  nobody;

worker_processes  10;

#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;

events {
    worker_connections  1024;
}

# http conf
http {
    #include     http/common.conf;
    #include     http/cache.conf;
    #include     http/resty.conf;
    #include     http/mime.types;

    include     http/*.conf;

    include


版权声明:本文为zhaoyangjian724原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。