我正在用http和https服务配置Nginx服务器。我想才达到以下配置:在Nginx服务器中重写配置问题
redirect every page to HTTPS, except for the home page
在我的“HTTP”服务器配置,我已经第二改写条件的工作,但是我找不到写的第一方式。
location =/{
what goes here???
}
location/{
rewrite ^(.*) https://mydomain.com$1 permanent;
}
想法?