Hello, I am using the ssl_requirements plugin on shared hosting account. This hosting provider uses Passenger to manage Rails. Everything works fine until I try to go to a page that requires ssl (enforced by adding the ssl_required
filter). When this happens Passenger crashes and sends back a 500 error. The error reads:
Passenger encountered the following error:
The application spawner server exited unexpectedly: Broken pipe
Exception class:
PhusionPassenger::Railz::ApplicationSpawner::Error
Here is a basic scenario:
- User is using http to browse non-sensitive data.
- User goes to the signup form (where https is required)
- Ssl_requirement sees that user is not using the proper protocol and redirects them to a url that uses https.
- Passenger receives this request and tries to spawn a new rails application.
- When it uses the spawn_application method it encounters an error and crashes
The issue is that I don't know where the problem is occurring. I don't think it could be a problem with https because I can manually type in the https prefix and things will work fine. I believe that issue lies in either the ssl_requirement plugin or the way passenger handles this new https request.
Have you guys ever encountered a scenario like this? If so could you point to some resources to get this resolved?
Thanks.