Nginx Config Snipets

From Waritkova wiki
Jump to navigation Jump to search

Redirect HTTP host to SSL variant

server {
    listen 77.93.194.60:80; listen [2a01:430:12b:0:0:0:0:2]:80;
    server_name  jira.varak.net;
    rewrite ^/(.*) https://jira.varak.net$request_uri permanent;
}