Skip to content

Instantly share code, notes, and snippets.

@SeavantUUz
Created July 8, 2013 15:40
Show Gist options
  • Save SeavantUUz/5949941 to your computer and use it in GitHub Desktop.
Save SeavantUUz/5949941 to your computer and use it in GitHub Desktop.
#user AprocySanae
worker_processes 2;
error_log /home/AprocySanae/error/error.log;
worker_rlimit_nofile 1024;
events
{
use epoll;
worker_connections 65535;
}
http
{
include mime.types;
default_type application/octet-stream;
charset utf-8;
large_names_hash_bucket_size 128;
client_max_body_size 8m
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 120;
gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_http_version 1.0;
gzip_comp_level 2;
server
{
listen 80;
server_name blog.kochiya.me;
location / {
root /home/AprocySanae/web;
}
# index
rewrite /$ /www/page_0.html;
rewrite /index\..* /www/page_0.html;
# archive
rewrite /archive\..* /www/archive.html;
# tags
rewrite /tags\..* /www/tags.html;
# about_me
rewrite /about_me\..* /www/about_me.html;
# links
rewrite /links\..* /www/links.html;
error_page 404 /themes/404.html;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment