Skip to content

Instantly share code, notes, and snippets.

@pokka
Created November 28, 2012 06:28
Show Gist options
  • Save pokka/4159402 to your computer and use it in GitHub Desktop.
Save pokka/4159402 to your computer and use it in GitHub Desktop.
nginx404_for_pictures,base
server {
listen 3000;
server_name host;
root /path/to/project/..;
#passenger_enabled on;
#rails_env development;
location ~* \.(js|css|gif|png|bmp|jpeg|jpg|swf)$ {
access_log off;
log_not_found off;
expires max;
error_page 404 = (~ : root)/path/to/default.jpg;
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment