seenu
2009-Jul-16 11:58 UTC
Remove 12002 from http://www.projectbidding.com:12002/account/index
Hi, How can i remove 12002 from the URL http://www.projectbidding.com:12002/account/index i am using ruby on rails. I just need to have my url http://www.projectbidding.com/account/index. Please help me on this
Rob Biedenharn
2009-Jul-16 12:22 UTC
Re: Remove 12002 from http://www.projectbidding.com:12002/account/index
On Jul 16, 2009, at 7:58 AM, seenu wrote:> Hi, > > How can i remove 12002 from the URL http://www.projectbidding.com:12002/account/index > i am using ruby on rails. I just need to have my url > http://www.projectbidding.com/account/index. > > Please help me on thisWell, I suppose the snarky answer is run your listener on port 80 (the default for the http protocol), but since that may not be helpful, let me guess what you really need. You''re in a controller and want to construct that URI from the request: "#{request.protocol}#{request.host}#{request.request_uri}" If you replaced request.host with request.host_with_port you''d get the equivalent of request.url http://www.railsbrain.com/api/rails-2.3.2/doc/index.html?a=M000469&name=protocol -Rob Rob Biedenharn http://agileconsultingllc.com Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org
seenu
2009-Jul-16 13:03 UTC
Re: Remove 12002 from http://www.projectbidding.com:12002/account/index
actually i need to type the whole thing projectbidding.com:12002 for the server to come up is there any way where i can get the server up just by typing projectbidding.com and on more question what exactly this 12002 mean, is it a port on which my rails application running? On Jul 16, 5:22 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> wrote:> On Jul 16, 2009, at 7:58 AM, seenu wrote: > > > Hi, > > > How can i remove 12002 from the URLhttp://www.projectbidding.com:12002/account/index > > i am using ruby on rails. I just need to have my url > >http://www.projectbidding.com/account/index. > > > Please help me on this > > Well, I suppose the snarky answer is run your listener on port 80 (the > default for the http protocol), but since that may not be helpful, let > me guess what you really need. > > You''re in a controller and want to construct that URI from the request: > > "#{request.protocol}#{request.host}#{request.request_uri}" > > If you replaced request.host with request.host_with_port you''d get the > equivalent of request.url > > http://www.railsbrain.com/api/rails-2.3.2/doc/index.html?a=M000469&na... > > -Rob > > Rob Biedenharn http://agileconsultingllc.com > R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org
Rob Biedenharn
2009-Jul-16 14:44 UTC
Re: Remove 12002 from http://www.projectbidding.com:12002/account/index
Yes, that is the port. You''d need to specify that mongrel or thin or whatever listens on port 80 or, if Apache is listening on port 80, proxies the requests through to that port (or, more likely, using a proxy balancer to hit a small number of instances of your rails application on consecutive ports). -Rob On Jul 16, 2009, at 9:03 AM, seenu wrote:> > actually i need to type the whole thing projectbidding.com:12002 for > the server to come up is there any way where i can get the server up > just by typing projectbidding.com and on more question what exactly > this 12002 mean, is it a port on which my rails application running? > > > On Jul 16, 5:22 pm, Rob Biedenharn <R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org> > wrote: >> On Jul 16, 2009, at 7:58 AM, seenu wrote: >> >>> Hi, >> >>> How can i remove 12002 from the URLhttp://www.projectbidding.com:12002/account/index >>> i am using ruby on rails. I just need to have my url >>> http://www.projectbidding.com/account/index. >> >>> Please help me on this >> >> Well, I suppose the snarky answer is run your listener on port 80 >> (the >> default for the http protocol), but since that may not be helpful, >> let >> me guess what you really need. >> >> You''re in a controller and want to construct that URI from the >> request: >> >> "#{request.protocol}#{request.host}#{request.request_uri}" >> >> If you replaced request.host with request.host_with_port you''d get >> the >> equivalent of request.url >> >> http://www.railsbrain.com/api/rails-2.3.2/doc/index.html? >> a=M000469&na... >> >> -Rob >> >> Rob Biedenharn http://agileconsultingllc.com >> R...-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org > >