Skip to content

Instantly share code, notes, and snippets.

@wernersmit
Created July 18, 2016 10:09
Show Gist options
  • Save wernersmit/bff7b88ca5fe5d4dd966224c54bbe0e6 to your computer and use it in GitHub Desktop.
Save wernersmit/bff7b88ca5fe5d4dd966224c54bbe0e6 to your computer and use it in GitHub Desktop.
Nginx Basic Site Proxy Template
server {
listen 80;
server_name fqdn.domain.com;
access_log /var/log/nginx/fqdn.domain.com-access.log;
gzip on;
gzip_static on;
gzip_http_version 1.1;
gzip_proxied expired no-cache no-store private auth;
gzip_disable "MSIE [1-6]\.";
gzip_vary on;
# Catch all - processes request not handled.
location / {
proxy_hide_header X-Pingback;
include /etc/nginx/proxy_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment