https - Nitrous port 3000 SSL & rails configuration -
I have a nitrous box, I am developing an app with Rail 4. I use preview port 3000 (SSL) to use the app.
The box responds to https: // # {name}. # {Zone} .nitrousbox com port 3000 / wow while using SSL settings! Just what I wanted
but this means that * _url path assistants fail - because they expect that the site should be "http", not "https". Create a simple rail app, click on "New # {thing}" "Save" and you do not get a URL with the URL, not https - so there is a 400 error in your face, for some Working to work if only rewriting proxy server and * _url assistants were coordinated
Apache server forced to https ("config.force_ssl = true" in config / environment / develop.rb) Is generating a redirect loop. I think this is because the request is translated back to the rail as a HTTP, which then gets the HTTPS proxy, which is received at HTTPS proxy, is sent back to the HTTP server, and again on HTTPS, etc, etc. Is directed.
So ... how does one not use force_ssl, but * _url causes helplines to emit https as the correct protocol? Or ... this is another way of working.
I want to do this work, I like like
How can I not work to tell rail to emit a route in HTTPS, and then happily receive requests in HTTP for that resource. All HTTP, or all HTTPS, is fine. But I think the rewrite of the protocol can not get anything to handle a reverse proxy. ;)
Comments
Post a Comment