Send Redirects To Specific Ports
Posted
by Garrett
on Stack Overflow
See other posts from Stack Overflow
or by Garrett
Published on 2010-06-10T04:50:27Z
Indexed on
2010/06/10
4:52 UTC
Read the original article
Hit count: 343
ruby-on-rails
|ruby-on-rails3
I have an Rails application server that is listening on port 9000, and is being called through haproxy. All my redirects from that server are being redirected back through port 9000, when they should be sent back on port 80.
I am using a combination of haproxy + nginx + passenger. Is there a way to make sure all redirects are being sent through port 80, regardless of what port the actual server is listening on?
I don't care if its a haproxy, nginx, Passenger, or Rails change. I just need to make sure most requests unless specified otherwise, are sent back to port 80.
Thanks!
© Stack Overflow or respective owner