First off, this is my first SSL web application so I might be doing something horribly wrong. We turned on SSL per request from a client on https://bla.be/
It seemed to work out of the box. We ordered web hosting with SSL and we didn't seem to have to do any configuration.
However 2 problems arose:
It always does this when I download a file through sendfile:
send_file datafile.document.path, :type => datafile.document_content_type, :disposition => 'attachment', :x_sendfile => true
I tried adding :secure => true to links but that doesn't seem to do anything.
Am I forgetting some required configuration? Or is my host's setup wrong?
Thanks in advance.
It sounds like you're specifying the :port option on your URL generation instead of the :protocol. You want to switch to the https protocol, not specify the SSL port.
If you're using a library/gem for this, it's not working correctly.
I'd recommend the ssl_requirement plugin.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With