EasyEngine / EasyEngine/site-command

Display message when not adding www redirection

オープン
#232 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
good first issue
主要言語
PHP
スター
18
フォーク
28
PR マージ指標
30日以内にマージされた PR はありません

説明

EasyEngine adds www redirections(`www.example.com` -> `example.com` or vice-versa) only if it finds that domain with www is pointed to the server. The reason for doing so is that to add https redirect from `www.example.com -> example.com`, we need a cert that is valid for both domains `www.example.com` and `example.com`. And to get that certificate, we need to ensure www is pointed to the server.

This leads to confusion among users who find that sometimes the redirection file is added, while sometimes it is not - https://community.easyengine.io/t/ee-site-create-503-service-temporarily-unavailable/12032

Solution to this issue is:
1. Always add HTTP www redirection
2. If the site has SSL and www domain is pointed, add https www redirection
3. If the site has SSL and www domain is not pointed, show a message on the user's screen that https redirection is not added as the domain is not pointed. Also, add a similar message as comment in the redirection config file.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

issue にはファイルやテストの指定がありません。まず、site-create コマンドの www および SSL のリダイレクト経路と設定生成を追跡します。HTTP の www リダイレクトが常に追加され、HTTPS リダイレクトが SSL と DNS の向き先に応じて条件付きで追加され、不足しているリダイレクトのメッセージが画面上と設定コメントの両方に表示されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
php
領域
cli, devops
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。