Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

[TODO]反向代理添加X-Real-IP,X-Forwarded-For,X-Forwarded-Proto,UA四个头 #27

Closed
abcfy2 opened this issue Aug 11, 2017 · 0 comments

Comments

@abcfy2
Copy link
Contributor

abcfy2 commented Aug 11, 2017

经过dgate的请求到了后端看到的始终是dgate发过来的请求。为了能让后端得到真正的用户请求,便于真正的后端对客户端进行某些统计,计划仿照反向代理的通用做法,添加这三个HTTP Header,告知后端真正的用户ip。

同时,添加User-Agent头,以便于后台统计用户浏览器

@abcfy2 abcfy2 changed the title [TODO]反向代理添加X-Real-IP,X-Forwarded-For,X-Forwarded-Proto三个头 [TODO]反向代理添加X-Real-IP,X-Forwarded-For,X-Forwarded-Proto,UA四个头 Aug 11, 2017
abcfy2 added a commit to abcfy2/dgate that referenced this issue Aug 12, 2017
@abcfy2 abcfy2 mentioned this issue Aug 12, 2017
abcfy2 added a commit to abcfy2/dgate that referenced this issue Aug 13, 2017
abcfy2 added a commit to abcfy2/dgate that referenced this issue Aug 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant