server {
listen 80;
resolver 8.8.8.8;
server_name g1.gorse.com;
location / {
proxy_pass https://api.fotolia.com$request_uri;
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 $scheme;
}
}
报错如下
2015/10/08 14:53:45 [error] 2220#0: *3 invalid URL prefix in "https://api.fotolia.com/", client: 219.135.171.180, server: g1.gorse.com, request: "GET / HTTP/1.1", host: "g1.gorse.com"
2015/10/08 14:53:46 [error] 2220#0: *4 invalid URL prefix in "https://api.fotolia.com/favicon.ico", client: 219.135.171.180, server: g1.gorse.com, request: "GET /favicon.ico HTTP/1.1", host: "g1.gorse.com", referrer: "http://g1.gorse.com/"
3 个解决方案
#1
自己的帖子得顶顶。
#2
报的是这个:invalid URL prefix in "https://api.fotolia.com/", 无效的url
#3
使用https需要HTTPS模块支持
http://www.cnblogs.com/yanghuahui/archive/2012/06/25/2561568.html
http://www.cnblogs.com/yanghuahui/archive/2012/06/25/2561568.html
#1
自己的帖子得顶顶。
#2
报的是这个:invalid URL prefix in "https://api.fotolia.com/", 无效的url
#3
使用https需要HTTPS模块支持
http://www.cnblogs.com/yanghuahui/archive/2012/06/25/2561568.html
http://www.cnblogs.com/yanghuahui/archive/2012/06/25/2561568.html