Answer the question
In order to leave comments, you need to log in
Redirect in nginx HTTPS facebook links to HTTP?
A strange thing happened, the links of the Share and Send to buttons of the facebook widgets of the sites began to correspond to https. Since our SSL certificates are self-signed, we have a bad view for users and lose the audience.
Here is an example of how it is proposed to solve the problem , but the redirect does not occur.
Moreover, in a configuration of the form
server {
listen 443 ssl;
rewrite ^(.*) http://$host$1 permanent;
# ssl on;
ssl_certificate /etc/nginx/conf.d/server.crt;
ssl_certificate_key /etc/nginx/conf.d/server.key;
....
Answer the question
In order to leave comments, you need to log in
How to make a redirect before providing certificates?No way. This is how TLS works. Buying a certificate is not at all expensive, for example from startssl .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question