original port from apache needed in rails ? RequestHeader ?

I have a web app that listens on 443 and 444 via apache, I need to
know in my rails app which port the request came from. I think
something with the RequestHeader directive is required, but not sure
how to do it...

any ideas ???

found it...you can add this to your apache config...

  #===== server port
  RewriteCond %{SERVER_PORT} (.*)
  RewriteRule .* - [E=X_SERVER_PORT:%1]
  RequestHeader add HTTP_X_SERVER_PORT %{X_SERVER_PORT}e

must have apache 2.2 or better
mongrel (or whatever) will see a new header HTTP_X_SERVER_PORT