Skip to content

Instantly share code, notes, and snippets.

@queso
Created June 26, 2009 15:14
Show Gist options
  • Save queso/136555 to your computer and use it in GitHub Desktop.
Save queso/136555 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name www.web20show.com;
rewrite ^(.*) http://web20show.com$1 permanent;
}
server {
listen 80;
server_name web20show.com *.web20show.com;
root /data/web20show.com/current/public;
access_log /var/log/nginx/web20show.comaccess.log; # vhost specific access log
passenger_enabled on;
location ~* \.(ico|js|css|jpg|jpeg|gif|png)$ {
expires max;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment