From: Park Heesob Date: 2002-08-28T14:03:20+09:00 Subject: Re: Virtual host and port number in CGI Hi, "Raymond Blum" wrote in message news:3D6C3D60.6060905@thebyteboard.com... > Hi > I am trying to figure out how to get the hostname and port # that was > used to invoke a Ruby program that is being run as a CGI (from Apache). > Can anyone point me at a simple example or describe the technique? > This should be a FAQ or at least straightforward, but either it is not > or I have been stricken brain-dead. > > Thanks In Advance > ---Raymond > ENV['SERVER_NAME'] ENV['SERVER_PORT'] Park Heesob