Skip to content

Instantly share code, notes, and snippets.

@zachskaggs
Created October 11, 2015 23:31
Show Gist options
  • Save zachskaggs/8737c75b9ab2df3a120c to your computer and use it in GitHub Desktop.
Save zachskaggs/8737c75b9ab2df3a120c to your computer and use it in GitHub Desktop.
if (!-e $request_filename)
{ rewrite ^(.*)$ /index.php?q=$1 last; break;
}
location ~ \.css {
add_header Content-Type text/css;
}
location ~ \.js {
add_header Content-Type application/x-javascript;
}
location ~ \.tff {
add_header Content-Type font/opentype;
}
location ~ \.png {
add_header Content-Type image;
}
location ~ \.woff {
add_header Content-Type font/opentype;
}
location ~ \.jpg {
add_header Content-Type image;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment