Installing Nginx
sudo yum install pcre-devel
wget http://sysoev.ru/nginx/nginx-0.5.35.tar.gz
tar xvzf nginx-0.5.35.tar.gz
cd nginx-*
./configure --sbin-path=/usr/sbin
--conf-path=/etc/nginx/nginx.conf
--pid-path=/var/run/nginx.pid
--error-log-path=/var/log/nginx/error.log
--with-http_ssl_module
--user=deploy --group=deploy
make && sudo make install
sudo mkdir -p /etc/nginx/apps
sudo /sbin/service httpd stop
sudo /sbin/chkconfig httpd off
1. Replace /etc/nginx.conf with this file.
2. Save this default configuration as /etc/nginx/default.conf. If you are already serving a site from youraccount.railsmachina.com, then you will need to update the default.conf to reflect any changes you made in /etc/httpd/conf/default.conf.
3. Use this application template and update with the name of your application and the correct mongrel ports. If you need SSL support, uncomment the lower section and update it also. Upload your configuration to /etc/nginx/apps/yourapp.conf.
4. Start nginx:
sudo nginx
Coming soon
- init scripts
- railsmachine recipes
Related Topics
Mongrel Start/Stop/Restart Recipe
