Hi,
I don’t know if this question should be posted here on the Rails list or
the Mongrel list, but I’ll try here first. I had been using
Aapache+FCGI and when I run the following code from my server’s domain
“perficient.com” it returns “perficient.com:80”:
port = @request.env[“SERVER_PORT”]==‘80’ ? ‘’ :
“:#{@request.env[“SERVER_PORT”]}”
server = “http://#{@request.env[“SERVER_NAME”]}#{port}”
however when I use Apache+Mongrel it returns “localhost:3000”.
Any ideas? if not is there another method I could call to get the true
server domain and port that the original request came to?
Thanks in advance. Scott.
What’s an Intel chip doing in a Mac? A whole lor more that it’s ever
done in a PC.
My Digital Life - http://scottwalter.com/blog
Pro:Blog - http://scottwalter.com/problog
Snippets - http://snippets.scottwalter.com