How to hide port number from URL?

I just installed RoR on my server and I can access it using port 3000,
but it’s not very nice to have it in the URL. How can I hide the port
from the URL?
Thanks,

Charles wrote:

I just installed RoR on my server and I can access it using port 3000,
but it’s not very nice to have it in the URL. How can I hide the port
from the URL?
Thanks,

./script/server webrick --port 80

Gokhan A.
Software developer
www.sylow.net

use FCGI and get rid of the webrick server altogether if that is an
option. If you use apache/lighttpd and fastcgi you are all on port 80
with no ugly port numbers

adam

On 1/30/06, Charles [email protected] wrote:

./script/server webrick --port 80

Thanks. I already have Apache on port 80. How could I do?

You can only have one web server per port. If you need to run
multiple applications through the same port, you should look into
Apache’s virtual host directive.

– James

Yes, is there a way to run RoR through Apache?

On 1/30/06, Charles [email protected] wrote:

Yes, is there a way to run RoR through Apache?

http://wiki.rubyonrails.org/rails/pages/HowtoSetupApacheWithFastCGIAndRubyBindings

./script/server webrick --port 80

Thanks. I already have Apache on port 80. How could I do?

On 30/01/06, Charles [email protected] 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.

Thank you.

I found this tutorial too:
http://wiki.rubyonrails.org/rails/pages/HowtoInstallAndRunRubyOnRailsOnCpanel