Skip to content

Instantly share code, notes, and snippets.

@brs14ku
Last active May 9, 2017 02:33
Show Gist options
  • Save brs14ku/f8d4a890f199c5fdd353d16cb16ed55a to your computer and use it in GitHub Desktop.
Save brs14ku/f8d4a890f199c5fdd353d16cb16ed55a to your computer and use it in GitHub Desktop.
Add to your nginx.conf for packrip
# Directives to send expires headers and turn off 404 error logging.
location ~* \.(js|css|png|jpe?g|gif|ico)$ {
expires 24h;
log_not_found off;
try_files $uri $uri/ @production;
}
location @production {
resolver 8.8.8.8;
proxy_pass https://YOURURLHERE/$uri;
}
@brs14ku
Copy link
Author

brs14ku commented May 9, 2017

Check config/nginx-config/sites/ directory for a file called something to the effect of local.packrip.conf.

@aladage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment