1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| # SSL反代 server { listen 443; server_name www.ccav.me ccav.me; #rewrite ^/(.*) https://$server_name$1 permanent; ssl on; ssl_certificate /root/#PEM/CRT; ssl_certificate_key /root/#KEY; # ssl_protocols SSLv2 SSLv3 TLSv1; # ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP; # ssl_prefer_server_ciphers on; #listen 80; location / { proxy_redirect www.B.com /; proxy_pass https://www.B.com; proxy_set_header Accept-Encoding ""; proxy_set_header User-Agent $http_user_agent; proxy_set_header Accept-Language "zh-CN"; proxy_set_header X-Real-IP $remote_addr;
|