A few weeks ago, I tried to use proxy_pass
to make a proxy, in order to display a web page which is not https within my page by using iframe
.
it works well, and I just try to set another proxied server, it doesn't work.
conf:
server {
listen 443 ssl;
server_name my.com;
ssl_certificate /server.pem;
ssl_certificate_key /server.key;
root html;
index index.html index.htm;
...
location /proxy/ {
proxy_pass http://other.com/;
}
}
I visit this webpage http://other.com/mobile.html, and it seems work well, but https://my.com/proxy/mobile.html goes wrong, here is the page:
HTTP Status 404 - /somefolder/mobile.html
I suppose that http://other.com server also uses a proxy, so I can't get the real webpage? Anyone knows what happened? Please give me some advice to avoid this.
Any help would be great appreciated! Thanks.