14

Apache virtual host proxy to nginx for ruby

view full story
linux-howto

http://serverfault.com – I'm running a few php sites off apache and want to start rails dev. I've installed rvm/nginx and can get my ruby site by going to websiteroot.com:8000... How do I pass ruby.websiteroot.com to websiteroot.com:8000? What's the best way for me to route a subdomain for ruby dev?? I'd switch to nginx completely if it weren't for all my php sites--seems like it's easier to just proxy for ruby. Advice? My nginx config looks like this: server{ listen: 8000; server_name website.com; root: /home/me/sites/ruby_folder/public; ... } My apache config looks like this: <VirtualHost> (HowTos)