Answer the question
In order to leave comments, you need to log in
Https for the site, how to enable?
Ordered a certificate, sent, installed.
The question is how to enable it by default for everyone? those. when you go through http - tossed to https?
Answer the question
In order to leave comments, you need to log in
apache or nginx? ? ?
apache: Redirect / https://example.com/
( help.ubuntu.ru/wiki/apache_%D0%B8_https )
nginx
server {
listen *:80;
server_name example.com;
proxy_set_header Host example.com;
location / {
rewrite ^(.*)$ https://example.com$1 permanent;
}
}
server {
listen *:443;
server_name example.com;
proxy_set_header Host example.com;
location / {
proxy_pass http://127.0.0.1:8080;
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question