xarrow
2014-08-17 11:46:33 +08:00
server {
listen 443 ssl;
server_name loacalhost;
access_log /etc/nginx/sites-available/ssl-access.log;
error_log /etc/nginx/sites-available/ssl-error.log;
ssl_certificate /home/usr/server.crt;
ssl_certificate_key /home/usr/server.key;
keepalive_timeout 60;
location / {
proxy_pass https://Address/;
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_redirect off;
}
}
//在网上找的一段代码,好像是Google的限制