2
anjunecha 2014-08-17 07:39:14 +08:00 via Android
你把你的Nginx反代配置代码贴出来看看
|
3
xarrow OP 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的限制 |
5
anjunecha 2014-08-17 11:56:12 +08:00 via Android 1
@xarrow 网上的方法都是错的,你可以看我发过的帖子来配置,http://www.v2ex.com/t/126028
|
11
anjunecha 2014-08-17 12:56:17 +08:00 via Android 1
@xarrow sorry。。。错按回复,把server_name loacalhost 这里的 localhost 改为你的域名
|