Created
November 27, 2015 14:21
-
-
Save dmnobunaga/29e05d597c6acc8685ce to your computer and use it in GitHub Desktop.
Test config
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
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; | |
log_format infostore '"$server_name" ' | |
'"$remote_addr" ' | |
'[$time_local] ' | |
'"$msec" ' | |
'[$args] ' | |
'[$request_body]' | |
'[$cookie_name] ' | |
'[$http_cookie] ' | |
'[$http_referer] ' | |
'[$http_user_agent] ' | |
'"$scheme" ' | |
'"$status"'; | |
log_format request_body '[$request_body]'; | |
keepalive_timeout 65; | |
server { | |
listen 2180; | |
server_name localhost; | |
# error_page 405 =200 $uri; # Fix post params | |
location / { | |
root html/s; # Storage | |
if ($cookie__qid) { | |
access_log logs/hit_data.log infostore; | |
} | |
if ($request_body){ | |
proxy_pass $scheme://$server_name/gif; | |
} | |
index index.html | |
} | |
location /gif { | |
access_log logs/request_body.log request_body; | |
empty_gif; | |
} | |
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