eustasy / Bubbly

BASH: Better SSL in Nginx in 10 minutes. Configuration files and setup scripts for Certbot.
MIT License
218 stars 21 forks source link

purpose of HTTPS Redirection block #7

Closed jots closed 8 years ago

jots commented 8 years ago

Hi,

What is the purpose of the HTTPS Redirection block starting on line 23 in nginx.conf? Can we do without it?

lewisgoddard commented 8 years ago

It's to redirect the www.[example.com] to [example.com]. You'll need it unless you're setting up a sub-domain.