Question

Problemas de redireccionamiento https://www.dominio.com a https://dominio.com

Estoy tratando de hacer una re dirección con nginx y no lo puedo conseguir,

instale Ghost del Marketplace de Digital Ocean y bueno todo bien el tema es que cuando escribo en el navegador https://www.dominio.com no me redirecciona a https://dominio.com

he visto varios tutoriales pero no entiendo la lógica aun aca hay una manera de hacerlo pero no me funciona https://ghost.org/docs/api/v3/ghost-cli/knowledgebase/#ssl-for-additional-domains quisiera saber como lograrlo

ghost config url https://my-second-domain.com -> cambiarlo por https://www.dominio.com

ghost config url https://my-canonical-domain.com -> cambiarlo por https://dominio.com

Ayuda por favor gracias.

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @01luisrene,

It seems like you need to update your Nginx configuration for your domain.com. You’ll need to add a server block for it like so

server {
    server_name www.example.com;
    return 301 $scheme://example.com$request_uri;
}

You’ll of course need to change example.com with your actual domain.

Regards, KFSys