Skip to content

Instantly share code, notes, and snippets.

@elentok
Created June 24, 2013 11:07
Show Gist options
  • Save elentok/5849322 to your computer and use it in GitHub Desktop.
Save elentok/5849322 to your computer and use it in GitHub Desktop.
Redirect favicon.ico, robots.txt, 500/404/422.html to public
server {
listen 80;
server_name subdomain.domain.com;
location ~* ^/(favicon.ico|robots.txt|500.html|404.html|422.html)$ {
root /home/rails/website/current/public;
try_files $uri =404;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment