EasyEngine / EasyEngine/site-command

Display message when not adding www redirection

Abierto
#232 2 comentarios 0 reacciones 0 asignados Ver en GitHub
good first issue
Lenguaje dominante
PHP
Estrellas
18
Forks
28
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

En el issue no se mencionan archivos ni tests. Empieza siguiendo las rutas de redirección de www y SSL y la generación de configuración del comando site-create. Se considera terminado cuando la redirección HTTP de www siempre se añade, la redirección HTTPS es condicional a SSL y a que DNS apunte correctamente, y el mensaje de redirección faltante aparece tanto en pantalla como en el comentario de configuración.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
php
Área
cli, devops
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.