[Rails] Re: How to hide port number from URL?
Łukasz Piestrzeniewicz
bragi.ragnarson at gmail.com
Mon Jan 30 18:37:55 GMT 2006
On 30/01/06, Charles <freakingcrazy at gmail.com> wrote:
> > ./script/server webrick --port 80
>
> Thanks. I already have Apache on port 80. How could I do?
You have at least two options.
First would be to install fcgi support for Apache and run your
application from Apache itself. I use this setup for several Rails
applications on my own computer.
Second is to use Apache as a proxy redirecting all traffic to
lighttpd/webrick running on port 3000. This is preferred way of
working for example on Textdrive. (See mod_proxy documentation).
Another thing is that you probably do not want to configure Rails app
as the one and only for your Apache. If so you can install application
on it's own virtual host or as sublocation of your default host.
Virtual hosts are simple to setup but if your computer does not have
several DNS entries assigned applications will be visible only on from
your computer.
Everything depends on if you want your applications to be visible by
others in the network.
--
Łukasz Piestrzeniewicz
More information about the Rails
mailing list