0

I have a Rails app that is served by Apache and Passenger, using only SSL.

Now, I have an external connection that must be made using only HTTP.

As I'm only listening for port 443 for this Rails App, I don't check in the code if the connection is secure or not.

Every connection for port 80 for this App are redirected to the https 443.

The question is, can I have two Apache Passengers listeners using the same Rails app in the same host/computer ?

One for 80 and antoher one for 443, of course each one will listen for different url.

I think this is not possible, at least my initial tests weren't successful.

What are the best options to accomplish this ?

  • Add a new Rails App instance, with a different name (wasting resources but easier one!!!!)
  • Add one instance of Camping with Passenger for just this purpose, listening to special address and just for one route
  • ...

thanks,

regards

4

1 回答 1

0

好吧,终于解决了为此目的使用最低限度的“去咖啡因的 Rails 应用程序”......可能会浪费资源,但此时它所在的服务器是有能力的,也许我们将来可以改进,但至少这是不那么痛苦的解决方法...

于 2012-07-02T15:45:13.260 回答