minad / olelo

Wiki with git backend
MIT License
241 stars 44 forks source link

Doesn't support force https #72

Closed ghost closed 11 years ago

ghost commented 11 years ago

When forcing https i've got a url such as https://server.com:80/login. Looks like it is liked with relative_redirect.rb because removing #{":#{port}" unless SCHEME_MAP[scheme] == port} solve the issue, but is a dirty hack.

minad commented 11 years ago

At which port do you have your server running? How do you force https? For now try to disable the RelativeRedirect middleware in the config.ru. The browers accept relative redirects in general.

ghost commented 11 years ago

It's running on port 80, on top of Passenger. I've tried two methods for forcing https:

Disableing RelativeRedirect seems to works also.