ruby on rails - Port Redirection To Domain Issue -


i using cent os 5.8 kloxo.

i have ruby application. when start application , default starts @ port nos 3000. access dat need put domain.com:3000 .

this doesn't , decided run mongrel @ port nos 80. able access domain.com

but want application shall run in sub domain , there should different website running in main domain.

i tried putting code in httpd.conf , didn't work.

can 1 me on this.

thank you

you can use nginx proxy accomplish this. can run apps on ports 3000, 3001 , 3002 (for example) , let nginx route traffic based on hostname requested. recommend looking phusion passenger production environments because enables run applications you're used in apache or nginx environment. according phusion, outperforms mongrel, mileage may vary of course.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -