raymond9zhou / frps-nginx-https

nginx反代frps实现https的模板配置文件
https://blog.ray8.cc/archives/frpc-frps-nginx-real-ip-https-rewrite-ssl-cert-pure-code.html
MIT License
41 stars 8 forks source link

nginx端口判断缺了1个括号 #2

Closed f1ynng8 closed 4 years ago

f1ynng8 commented 4 years ago
if ($server_port !~ 443){ #用于80端口自动跳转到HTTPS
    rewrite ^(/.*)$ https://$host$1 permanent;
}
raymond9zhou commented 4 years ago

确实是我的笔误,还在想为什么很多朋友用了本地版本出现问题,非常感谢您的指出!