我正在用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;
}
想法?