As for nginx to translate all requests to https?

There is a forum, nginx - frontend, apache2 - backend.
Configured https, and problems arise when users add pictures from external sources - browser swears on mixed content, and puts an exclamation mark next to the castle.
Question: can I configure nginx so that all http connection was proxied and passed to the client via https?
July 4th 19 at 23:22
2 answers
July 4th 19 at 23:24
Solution
In General, the solution is trivial, using sub_filter to all links to alter to https.
July 4th 19 at 23:26
is it possible to configure nginx so that all http connection was proxied and passed to the client via https?
Requests images from third party sources on your website do not fall, so not, proxy only means nginx will not work. You need to replace all references to external images as their handler, who will have to deal with proxying.
Just a file that will receive the address of the picture to her and give a web server. - aniya commented on July 4th 19 at 23:32
tell me what kind of processor? not strong in web technologies. - angie.Luettg commented on July 4th 19 at 23:29
: in General no special handlers on the links page Fig che will do... and I thought that was already invented mechanisms to proxy all out of the box - angie.Luettg commented on July 4th 19 at 23:35
It is impossible to proxy requests if they don't come to your server. - aniya commented on July 4th 19 at 23:38
: Yes it is clear, fantasy kind of fiction =) - angie.Luettg commented on July 4th 19 at 23:41

Find more questions by tags FrontendNginx