Skip to content

Instantly share code, notes, and snippets.

@south37
Created March 28, 2014 13:06
Show Gist options
  • Save south37/92350ee06e1be4bde660 to your computer and use it in GitHub Desktop.
Save south37/92350ee06e1be4bde660 to your computer and use it in GitHub Desktop.
#user nobody;
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 8080;
server_name localhost;
location / {
root html;
index index.html index.htm;
}
location @manga_server {
content_by_lua_file /usr/local/etc/nginx/lua/manga.lua;
}
location ~ ^/manga/(?<path>.*\.(?<ext>[a-z_]*))$ {
root /usr/local/var/www/manga/cache;
try_files /$path @manga_server;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment