D
D
Daniel Newman2013-12-31 08:00:22
Nginx
Daniel Newman, 2013-12-31 08:00:22

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;
 ....

the server generally refuses to deal with the visitor. Say you need SSL enabled. Enabling SSL causes the problem to start. Accepting the "singed" self-signed certificate results in the desired redirect to HTTP.
How to make a redirect before providing certificates?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2013-12-31
@danielnewman

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 .

I
ilnarb, 2013-01-07
@ilnarb

Is it possible to fix this in the button settings?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question