Skip to content

Instantly share code, notes, and snippets.

Created July 18, 2013 07:30
Show Gist options
  • Save anonymous/6027396 to your computer and use it in GitHub Desktop.
Save anonymous/6027396 to your computer and use it in GitHub Desktop.
Nginx 重定向80到443端口
server {
listen 80;
server_name ww.centos.bz;
rewrite ^(.*) https://$server_name$1 permanent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment