alx / nginx_merb_vhost

Manage Merb Application on different Vhosts served by Nginx using Capistrano

This URL has Read+Write access

alx (author)
Fri Jan 16 12:18:10 -0800 2009
commit  f05b749dc884f207dd65de31425f85f4d42afcf5
tree    b585df272172e6a126a981a12be1ad99e8c45728
parent  3bff0b570260b99a10146dc647df83fd702bb429
nginx_merb_vhost / README
100644 7 lines (4 sloc) 0.587 kb
1
2
3
4
5
6
7
If you ever need to use Capistrano 2 with virtual hosts on Nginx this article may save you some time by automating the process.
 
The article assumes that for each vhost you want to define a nginx configuration file which gets placed in /etc/nginx/sites-available/ and symlinked to sites-enabled. If you just want one big nginx file with all your vhosts in it, then this article won’t help!
 
What we want is for Capistrano to auto generate the nginx configuration using a shared configuration template and place it on the server. E.g.
 
Original Idea: http://www.subreview.com/articles/6