spiritedmedia / systems

Code and documentation for building, deploying, and serving code.
1 stars 1 forks source link

HTTP not redirecting to HTTPS on staging environment #57

Closed montchr closed 5 years ago

montchr commented 5 years ago

Visiting an HTTP URL does not redirect to HTTPS on staging:

http://staging.billypenn.com/2018/07/31/this-magical-sculpture-garden-in-west-kensington-is-a-colombian-american-artists-dream/ http://staging.billypenn.com/ads.txt

The redirection works in production and in my local environment.

montchr commented 5 years ago

Fixed by adding listen 80 default_server; to the server block. See https://github.com/spiritedmedia/systems/tree/master/web-servers/staging.spiritedmedia.com#nginx-configuration-updates