- 博客(0)
- 资源 (1)
- 收藏
- 关注
nginx 配置模板
nginx 配置模板,正常项目中使用的一些配置。 server {
listen 80;
server_name www.test.com;
charset utf-8;
access_log logs/access.log;
root "E:/front";
proxy_set_header Host $host;
set $uid "-";
# 存在值则赋值
if ( $http_cookie ~* "at_uvid=(\S+)(;.*|$)"){
set $uid $1;
}
location ^~/test-business {
proxy_pass http://127.0.0.1:8080;
break;
}
2017-12-21
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人