A
A
adrian12021-12-08 16:24:40
Nginx
adrian1, 2021-12-08 16:24:40

How can a site with ssl access the backend without ssl?

How can a site with ssl access the backend without ssl?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Filippenko, 2021-12-08
@adrian1

You can implement proxying on the side of your backend/server. Easiest way with nginx:

location /proxy {
    proxy_pass http://domain.com;
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Real-IP $remote_addr;
}

K
ky0, 2021-12-08
@ky0

If you can access the backend from the site (in the browser), then this is in fact not a backend. And, accordingly, you need to configure HTTPS for it, then the problem will be solved.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question