Skip to content

Instantly share code, notes, and snippets.

Created June 28, 2013 21:52
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
My server nginx configuration for my blog
server {
listen 80;
access_log /var/log/nginx/penso.access.log;
root /www/;
index index.html index.htm;
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires 1w;
log_not_found off;
charset UTF-8;
gzip on;
gzip_vary on;
gzip_min_length 500;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
error_page 404 /404.html;
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
location ~ /\.ht {
deny all;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment