Category : Nginx

Add a custom log format in your nginx.conf: log_format cf_custom ‘$remote_addr – $remote_user [$time_local] ‘ ‘”$request” $status $body_bytes_sent ‘ ‘”$http_referer” “$http_user_agent” ‘ ‘$http_cf_ray’; Set real visitor IPs in your site(s) vhost config mysite.conf: set_real_ip_from 103.21.244.0/22; set_real_ip_from 103.22.200.0/22; set_real_ip_from 103.31.4.0/22; set_real_ip_from 104.16.0.0/12; set_real_ip_from 108.162.192.0/18; set_real_ip_from 131.0.72.0/22; set_real_ip_from 141.101.64.0/18; set_real_ip_from 162.158.0.0/15; set_real_ip_from 172.64.0.0/13; set_real_ip_from 173.245.48.0/20; set_real_ip_from 188.114.96.0/20; ..

Read more

ALPN Step 1. Manually update your openssl # openssl version OpenSSL 1.0.1e-fips 11 Feb 2013 # yum install pcre-devel -y # cd /usr/local/src/ # wget https://www.openssl.org/source/openssl-1.0.2-latest.tar.gz # tar -zxf openssl-1.0.2-latest.tar.gz # cd openssl-1.0.2k/ # ./config # make depend # make # make test # make install # mv /usr/bin/openssl /usr/bin/openssl_1.0.1e # ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl ..

Read more