Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
phlinhng opened this issue May 13, 2020 · 0 comments
Open

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

phlinhng opened this issue May 13, 2020 · 0 comments

Comments

@phlinhng
Copy link

phlinhng commented May 13, 2020

建议增加伪装站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;
    }
This was referenced May 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant