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, -- Posted via http://www.ruby-forum.com/.
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 Arli Software developer www.sylow.net -- Posted via http://www.ruby-forum.com/.
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 <freakingcrazy@gmail.com> 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, > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
> ./script/server webrick --port 80Thanks. I already have Apache on port 80. How could I do? -- Posted via http://www.ruby-forum.com/.
On 1/30/06, Charles <freakingcrazy@gmail.com> 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
Perhaps you''re confused on what "hiding" the port means. The only port that you can "hide" is the default port for the scheme. So for "http:" you MUST specify the port if it is different from the default of 80. -Rob At 1/30/2006 01:02 PM, you wrote:>On 1/30/06, Charles <freakingcrazy@gmail.com> 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 >_______________________________________________ >Rails mailing list >Rails@lists.rubyonrails.org >http://lists.rubyonrails.org/mailman/listinfo/rails
Yes, is there a way to run RoR through Apache? -- Posted via http://www.ruby-forum.com/.
On 1/30/06, Charles <freakingcrazy@gmail.com> wrote:> Yes, is there a way to run RoR through Apache?http://wiki.rubyonrails.org/rails/pages/HowtoSetupApacheWithFastCGIAndRubyBindings
Ćukasz Piestrzeniewicz
2006-Jan-30 18:37 UTC
[Rails] Re: How to hide port number from URL?
On 30/01/06, Charles <freakingcrazy@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
Thank you. -- Posted via http://www.ruby-forum.com/.