-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
43 lines (32 loc) · 798 Bytes
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
init_by_lua_block {
log_file = io.open('./example.log', "a")
}
server {
listen 1000;
server_name localhost;
location / {
root html;
index index.html index.htm;
}
location /mine {
set $redirect_url 'foo';
content_by_lua_file ./app/mine.lua;
}
location /foo/ {
internal;
access_log ./logs/bar-access.log;
error_log ./logs/bar-error.log;
log_by_lua_file ./app/log.lua;
root F:/;
}
}
}