【GMOクラウドVPS-Plesk】サブドメインで完全SSL化httpからhttpsへ転送設定
PleskはLet’s Encryptでサブドメインも気軽にSSL対応が出来るので
完全SSL化(httpからhttpsへ転送)設定についてのメモ
■環境情報
OS: CentOS 7.5.1804
Plesk Onyx 17.8.11 Update #16
完全SSL化(httpからhttpsに転送設定)
Pleskの対象となるサブドメインの『Apache および nginx の設定』画面を開く
nginx追加ディレクティブに記載
Apache および nginx の設定画面の最下部にある
nginx追加ディレクティブに設定
1 2 3 4 |
<strong>設定例)</strong> if ($server_port = 80) { rewrite ^ https://$host$request_uri permanent; } |