Skip to content

Instantly share code, notes, and snippets.

@rjfranco
Created July 27, 2012 17:47
Show Gist options
  • Save rjfranco/3189337 to your computer and use it in GitHub Desktop.
Save rjfranco/3189337 to your computer and use it in GitHub Desktop.
Sample Configuration for Nginx
server {
listen 80;
server_name tedera.com;
root /var/www/tedera/current/public;
passenger_enabled on;
if ($host = 'www.tedera.com') {
rewrite ^/(.*)$ http://tedera.com/$1 permanent;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment