【发布时间】:2011-09-24 13:52:00
【问题描述】:
我正在使用 http 和 https 服务配置 Nginx 服务器。我正在尝试实现以下配置:
redirect every page to HTTPS, except for the home page
在我的“http”服务器配置中,我已经有第二个重写条件工作,但我找不到编写第一个的方法。
location = / {
what goes here???
}
location / {
rewrite ^(.*) https://mydomain.com$1 permanent;
}
想法?
【问题讨论】: