Skip to content

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

Description

@phlinhng

建议增加伪装站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;
    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions