title: How to reverse proxy a site which use ssl by nginx?
body: <p>For example:
  I want to use a domain reverse proxy <a href="https://tw.godaddy.com" rel="nofollow noreferrer">https://tw.godaddy.com</a>, is this possible?
  My config does not work.</p>
  
  <pre><code>        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;
      }
  </code></pre>