Skip to content

Instantly share code, notes, and snippets.

@alvin2ye
Created October 30, 2009 06:09
Show Gist options
  • Save alvin2ye/222175 to your computer and use it in GitHub Desktop.
Save alvin2ye/222175 to your computer and use it in GitHub Desktop.
# remove apt-get nginx
sudo apt-get remove nginx
sudo gem install passenger
sudo passenger-install-nginx-module
# setting project
sudo vi /opt/nginx/conf/nginx.conf
server {
listen 80;
server_name hw.agideo.com;
root /home/agideo/www/hw/public;
passenger_enabled on;
}
# restart
sudo /opt/nginx/sbin/nginx -s reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment