Created
March 28, 2014 13:06
-
-
Save south37/92350ee06e1be4bde660 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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