Apache httpd on the original whimsy-vm was behind a proxy that converts https requests into http requests. Update the environment variables to match. This middleware is likely now obsolte.
capture the app
# File lib/whimsy/asf/rack.rb, line 231 def initialize(app) @app = app end
HTTPS is set in the environment, rewrite the
SERVER_PORT; and strip
index.html from the
# File lib/whimsy/asf/rack.rb, line 238 def call(env) if env['HTTPS'] == 'on' env['SCRIPT_URI'].sub!(/^http:/, 'https:') env['SERVER_PORT'] = '443' # for reasons I don't understand, Passenger on whimsy doesn't # forward root directory requests directly, so as a workaround # these requests are rewritten and the following code maps # the requests back: if env['PATH_INFO'] == '/index.html' env['PATH_INFO'] = '/' env['SCRIPT_URI'] += '/' end end return @app.call(env) end