I am using Webrick to start my rails application. Instead of using http://localhost:3000, i want to access http://www.domain.com. How can i achieve this using Webrick Server ? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
You can specify the port number using the --port switch: $ sudo ruby script/server --port=80 See --help for more options. Senthilkumar Rajendran wrote:> I am using Webrick to start my rails application. > Instead of using http://localhost:3000, i want to access > http://www.domain.com. > How can i achieve this using Webrick Server ?-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
I didn''t want to change the port. I am specifying the address http://localhost:portno (or) http://0.0.0.0:portno (or) http://hostname:portno to start my application using the browser. I need to specify it by http://appname (or) http://www.appname.com How is it possible ? Gijs Nijholt wrote:> You can specify the port number using the --port switch: > $ sudo ruby script/server --port=80 > See --help for more options.-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
You don''t need to change any thing at all on your computer. You need to register that domain name from your preferred registrar and point that domain name at the ip address that your server is using Fred -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
This for Apache server (httpd.conf) <VirtualHost www.example.com> ServerName www.example.com ServerAlias example.com DocumentRoot "/usr/example/" </VirtualHost> <VirtualHost www.example2.com> ServerName www.example2.com ServerAlias example2.com DocumentRoot "/usr/example2/" </VirtualHost> I need the simillar for Webrick. Frederick Cheung wrote:> You don''t need to change any thing at all on your computer. You need to > register that domain name from your preferred registrar and point that > domain name at the ip address that your server is using > > Fred-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Senthilkumar Rajendran wrote:> I didn''t want to change the port.Regardless of how you set up WEBrick with a virtual host (no idea how this is done, not a WEBrick user), you will need to change your port. I don''t think you can ask a web browser to listen to anything other than port 80 unless you specify it in your url, or use a proxy. -Bryan -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---