Ron Fox
7/2/2008 11:37:00 AM
All browsers I'm aware of will treat
http://somehost/page
as http://somehost:80/page
and
https://somehost/page
as
https://somehost:443/page
It's the nature of URLs, and the nature of browsers.
That's one of many reasons why in rails deployment, one often
uses a proxy web server that forwards URL's on 80/443 to the
actual rails web servers.
e.g. in my applications I've set up
Apache with proxy-balancer. Apache takes the request, load balances
it out to one of my rails servers which are running on a range of
ports on a set of server systems.
This provides scalability and also the URL re-writing you're after,it
can be tricky to set up but a bit of googling should point you at some
recipes for doing it.
RF
Zangs Dev wrote:
> http://localhost:3000/ right ?
>
> I want to run this url like http://localhost/testproject
>
> Without using Port. Is that any solution I can use my own url
> without port to run the project ?
>
> Thanks
> Zangs Dev
--
Ron Fox
NSCL
Michigan State University
East Lansing, MI 48824-1321