千寻

道路很长, 开始了就别停下!

0%

Nginx映射本地文件

注意顺序,会与其他如后缀匹配 .*.(gif|jpg|jpeg|png|bmp|swf)$ 等冲突。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
server {
listen 80;
server_name api.yiqikj.cn;
location /resource/ {
alias /data/inkee/inkee-boot-os/;
autoindex on;
expires 30d;
}
location / {
#proxy_redirect off;
proxy_pass http://127.0.0.1:9898;
}
# location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ {
# expires 30d;
# }
# location ~ .*\.(js|css)?$ {
# expires 12h;
# }
access_log logs/inkeebackstage.log main;
}