intercity / chef-repo

Set up your server to host Ruby on Rails apps. - Follow us on Twitter: @intercityup
MIT License
416 stars 82 forks source link

Domain redirect not working in combination with SSL #176

Closed jvanbaarsen closed 9 years ago

jvanbaarsen commented 9 years ago

When a user has SSL enabled and setup a redirect domain, the app will become unreachable. I believe it has something to do with two listeners in the server block, but i'm not sure.

/cc @berkes

jvanbaarsen commented 9 years ago

I did some more looking into this:

We need to add two redirect server blocks when SSL is enabled, one for port 80 and one for port 443 with the SSL information in the server block. I'll be preparing a PR with a fix.