forked from C4o/ChineseDarkWebCrawler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
29 lines (25 loc) · 686 Bytes
/
nginx.conf
File metadata and controls
29 lines (25 loc) · 686 Bytes
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
worker_processes auto;
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 / {
proxy_pass http://127.0.0.1:1234;
}
location ~* \.css$ {
rewrite_by_lua_block {
local new_uri = ngx.re.sub(ngx.var.uri , ".*/([a-z0-9.-]+.css$)", "/$1" , "mijo")
ngx.req.set_uri(new_uri)
ngx.log(ngx.ERR , ngx.var.uri , " " , new_uri)
}
root html;
}
}
}