By 01luisrene
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.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.