-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rack::SslEnforcer options mess up with 'localhost' #64
Comments
Thanks for reporting, i'll take a look this evening. Could you provide a failing test case? |
I will try if I have time. Thanks for your help. |
I created 2 cases for localhost and 127.0.0.1 but they both succeed. However, in the real environment where many layers are involved (DNS, thin/webrick/apache, ...) are involved, I am not sure how to reproduce this using your simple test environment. Maybe capybara with selenium should be used to replicate this? |
Ok. What's the config.middleware.use line you use? |
|
Sorry for the response lag, i've been pretty busy the last days.
With the configuration line above, there should be no redirects at all in development environment, no matter if you point your browser to http://localhost/users or http://127.0.0.1/users. If i understand your issue properly, you are being redirected anyway? |
I get redirected if used localhost but not 127.0.0.1. Sent from my iPhone
|
I've prepared a little sample application, which behaves as expected (from my side). Could you checkout https://github.com/tobmatth/rse-gh64 and test if this works for you? |
Closing here due to inactivity, feel free to reopen... |
It works perfectly. For my app as well. My best guess is that zeus could have had problems reloading the middleware. |
Good to hear and thanks for your feedback... |
Whatever options you put like :only_environments => 'production' or :only_hosts => 'blahblah', these will NOT be respected if you use 'localhost'. However, using 127.0.0.1 will behave correctly!
The text was updated successfully, but these errors were encountered: