Skip to content

Commit

Permalink
Updates docs/logger-rule.md
Browse files Browse the repository at this point in the history
Auto commit by GitBook Editor
  • Loading branch information
xwjie committed Jan 19, 2018
1 parent e7c4ec5 commit d405b91
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions docs/logger-rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@

```
upstream code_server{
server 127.0.0.1:8080;
server 127.0.0.1:18080;
ip_hash;
keepalive 32;
server 127.0.0.1:8080;
server 127.0.0.1:18080;
ip_hash;
keepalive 32;
}
server{
listen 80;
server_name xwjie.com;
listen 80;
server_name xwjie.com;
location /plm {
proxy_pass http://code_server/plm;
add_header x-slave $upstream_addr;
}
location /plm {
proxy_pass http://code_server/plm;
add_header x-slave $upstream_addr;
}
}
```
Expand All @@ -47,9 +47,17 @@ server{
</layout>
```

**效果图:**![](/pictures/nginx.png)

# 日志打印点





# **最终日志效果**

![](/pictures/log1.png)



0 comments on commit d405b91

Please sign in to comment.