Skip to content

Instantly share code, notes, and snippets.

@agentzh
Created May 12, 2012 14:58
Show Gist options
  • Save agentzh/2667007 to your computer and use it in GitHub Desktop.
Save agentzh/2667007 to your computer and use it in GitHub Desktop.
nginx.conf
worker_processes 1;
daemon on;
master_process off;
error_log /home/agentz/git/lua-nginx-module/t/servroot/logs/error.log debug;
pid /home/agentz/git/lua-nginx-module/t/servroot/logs/nginx.pid;
env MOCKEAGAIN_VERBOSE;
env MOCKEAGAIN;
env MOCKEAGAIN_WRITE_TIMEOUT_PATTERN;
env LD_PRELOAD;
env DYLD_INSERT_LIBRARIES;
http {
access_log /home/agentz/git/lua-nginx-module/t/servroot/logs/access.log;
default_type text/plain;
keepalive_timeout 68;
postpone_output 1;
server {
listen 1984;
server_name 'localhost';
client_max_body_size 30M;
#client_body_buffer_size 4k;
location /lua {
#if_modified_since before;
content_by_lua '
ngx.header.last_modified = "Thu, 10 May 2012 07:50:48 GMT"
ngx.say("hello")
';
}
location / {
root /home/agentz/git/lua-nginx-module/t/servroot/html;
index index.html index.htm;
}
}
}
events {
worker_connections 64;
use poll;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment