Answer the question
In order to leave comments, you need to log in
How to proxy-paste https to http?
How to proxy-paste https to http?
That is, backing to https, I need it to be on my domain necessarily on http without certificates, and so that the url does not leak, that is, if the redirect then nginx first follows it and proxies the location already.
The problem is that nginx does it too stupidly and does not resolve the certificates inside, and for this the browser tries to communicate as a regular http, and the server is waiting for the hpps and they have a discrepancy.
Is it possible to do this on it at all, or will I have to write my own web server?
Answer the question
In order to leave comments, you need to log in
so I read it five times and I didn’t understand what you want, so I really tried some kind of nonsense written.
You describe the real problem itself and not what you want to do.
and I'll tell you what you need to do for this
if you have a back on https and the front is not, then what's the problem then?
the front is proksya she doesn't give a damn about the certificate from the back.
you would at least give your config here, otherwise telepathy is not very good today, there are magnetic storms, reptilians. all things.
shorter wangyu
server {
listen *:80;
server_name 3dpaneli.ru www.3dpaneli.ru ;
root /var/www/3dpaneli.ru/web;
....
location / {
proxy_pass https://127.0.0.1:443;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
......
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question