Answer the question
In order to leave comments, you need to log in
How to convert all requests to https in nginx?
There is a forum, nginx - frontend, apache2 - backend.
https is configured, and problems arise when users add images from third-party sources - the browser swears at mixed content, and puts an exclamation mark next to the padlock.
Question: is it possible to configure nginx in such a way that all http connections are proxied and issued to the client via https?
Answer the question
In order to leave comments, you need to log in
In general, the solution is banal, using sub_filter to change all links to https.
is it possible to configure nginx in such a way that all http connections are proxied and issued to the client via https?Image requests from third-party sources do not reach your site, so no, proxying only using nginx will not work. You need to replace all links to external images with your handler, which will already handle proxying.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question