【发布时间】:2016-09-16 02:39:17
【问题描述】:
This 帖子非常接近我正在寻找的内容。但我正在寻找的是
letsencrypt.example.com should always be http
*.example.com should always be https
使用this post中的解决方案,我可以将所有http重写为https
server {
listen 80;
server_name test.example.com;
rewrite ^ https://$http_host$request_uri? permanent;
}
然后继续做
server {
listen 443 ssl;
...
问题
但是我怎样才能确保letsencrypt.example.com 保留在 http 端口 80 上?
【问题讨论】:
标签: linux redirect nginx https lets-encrypt