atrandys / trojan

Apache License 2.0
1.06k stars 625 forks source link

建议: 伪装站http自动重定向到https #22

Open phlinhng opened 4 years ago

phlinhng commented 4 years ago

建议增加伪装站http自动重定向到https,更符合现代网站的安全要求。 #24

server {
        listen  127.0.0.1:80;
        server_name  $your_domain;
        root /usr/share/nginx/html;
        index index.php index.html index.htm;
    }

server {
        listen  0.0.0.0:80;
        listen  [::]:80;
        server_name  _;
        return  301 https://$your_domain\$request_uri;
    }