How to reverse proxy a site which use ssl by nginx?
问题 For example: I want to use a domain reverse proxy https://tw.godaddy.com, is this possible? My config does not work. location ~ / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass https://tw.godaddy.com; proxy_set_header Host "tw.godaddy.com"; proxy_set_header Accept-Encoding ""; proxy_set_header User-Agent $http_user_agent; #more_clear_headers "X-Frame-Options"; sub_filter_once off; } 回答1: Yes. It is possible. Requirements: