Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Nginx logging client ip     - JavaScript in this usage (Programming)

- MySQL related statements (CRUD) (SQLyog software) (Database)

- Build the first ASP.NET 5 Web project in Mac OS X Yosemite 10.10.3 (Server)

- Use Nginx as a load balancer (Server)

- Linux system monitoring tool set cpu (Linux)

- Zabbix monitoring of the switch (Server)

- Oracle ORA-01691 error message, a single data file size limit problem (Database)

- Based on Python: OpenCV simple image manipulation (Programming)

- Java, hashcode, equals and == (Programming)

- SecureCRT use the configuration detailed tutorial (Linux)

- Java data structures - order linear form of table ArrayList (Programming)

- Getting case of Python Hello World (Programming)

- How to create a binary distribution with Bash (Linux)

- JavaScript closures and the scope chain (Programming)

- Oracle 11g How dataguard master repository to Oracle single instance data recovery (Database)

- C ++ 11 feature: decltype keywords (Programming)

- Analysis of memory mapping process in Linux x86-64 mode (Linux)

- Method under Linux GCC Compiler shared library function export control (Programming)

- Wi-Fi hackers use to attack your seven methods (Linux)

- Redis application of Sina Weibo (Database)

 
         
  Nginx logging client ip
     
  Add Date : 2018-11-21      
         
         
         
  Nginx logging client's ip

We need to add --with-http_realip_module when installed on the proxy settings :()
proxy_set_header Host $ host;
proxy_set_header X-Forwarded-For $ remote_addr;

set_real_ip_from ip; (fill in the ip is the proxy ip)
real_ip_header X-Forwarded-For;

When web rear end :( installation need to add --with-http_realip_module)
set_real_ip_from ip; (fill in the ip is the proxy ip)
real_ip_header X-Forwarded-For;
Add $ remote_addr or $ http_x_forwarded_for parameters log_format inside.
     
         
         
         
  More:      
 
- To get Java class / jar package path (Programming)
- Linux system started to learn: how to view the contents of the seed on the Linux file (Linux)
- Chkconfig command Detailed service is added and shut down the system in two ways to start service under Linux (Linux)
- YUM install desktop environment in CentOS (Linux)
- Adding SSH to Github (Linux)
- To install MySQL on Linux (Database)
- Package the Python script file into an executable file (Programming)
- Android annotation support (Support Annotations) (Programming)
- Installation Flow N Play- interface stylized video player on Ubuntu (Linux)
- Iptables application layer plug (Linux)
- Packages with Snort intrusion monitoring light (Linux)
- How to restart after a crash Cinnamon (Linux)
- How to achieve SSH without password login (Server)
- When should I use Angular 2 (Programming)
- Ubuntu way of decompressing files (Linux)
- numpy and SciPy installation under Python for scientific computing package (Linux)
- pscp use Detailed Windows and Linux each file transfer tool (Linux)
- How to Create a file can not be changed under Linux (Linux)
- Nginx introduced Dynamic Module Architecture (Server)
- Ubuntu install Scala 2.10.x version (Linux)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.