nginx 配置 强制80转https

server {
listen 80;
server_name s e r v e r n a m e ; r e w r i t e ( . ∗ ) {server_name}; rewrite ^(.*) servername;rewrite(.) https://${server_name}$1 permanent;
}

你可能感兴趣的:(运维,ssl,lnmp,优化,php)