This is an old revision of the document!
参考How To Add the gzip Module to Nginx on Ubuntu 14.04
参考How To Secure Nginx with Let's Encrypt on Ubuntu 16.04
场景:服务器端需要拿到浏览器中的url,但是这个url经过了nginx转发,默认拿到的是转发后的url,如果需要拿到之前的url,就需要配置proxy_set_header
location / { proxy_pass http://my_app_upstream; proxy_set_header Host $host; # ... }