I have a piece of code like this in one of my views:
<%=link_to “link here”, :action=>‘my_action’, :id=>1 %>
It works fine on my local development machine, running Webrick over http
and it works fine on my testing server which is running single mongrel
instance behind Apache 1.3 as a proxy. On both the outcome link is this:
However having deployed it to my live server, which is running a
mongrel_cluster behind Apache 2.2 and mod_proxy_balancer. That one just
gives the following:
Both the development server and the live one are running over https and
they’re both running the same versions of everything so I’m guessing
it’s something about how the https variable is being passed on the live
server (where I am able to use the X_FORWARDED_PROTO ‘https’ header
rather than having to set it manually as I do on the testing server.
Aside from a few minor configuration differences (mostly database
connection strings) the two versions of the application are the same SVN
revision and entirely identical.
All help welcome, I’m starting to get very confused here.