Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Nginx logging client ip     - Hibernate Performance Optimization of reusing SessionFactory (Programming)

- Linux common commands MEMO (Linux)

- Linux FAQ - How to fix tar:Exitingwith failure status due to previous errors (Linux)

- Broadcom transplanted to OpenWrt summary (Programming)

- MySQL completely uninstall and install Configuring Character Sets under Linux (Database)

- httpd-2.4 feature (Server)

- Customize the output format in Linux history (Linux)

- Use 3G wireless network card under Linux (Linux)

- How to configure HTTP Strict Transport Security (HSTS) (Linux)

- Ubuntu 12.04 installation OpenCV2.4.1 and compile test (Linux)

- How to find an IP address through the command line (Linux)

- HTTP and HTTPS request response process difference (Linux)

- KVM add virtual disks (Linux)

- Go constructed using an interpreted language (Programming)

- Use a soft Raid play multiple SSD hard drive performance and enhance data security (Linux)

- Analyzing Linux server architecture is 32-bit / 64-bit (Server)

- How to add and delete bookmarks in Ubuntu (Linux)

- Nginx caching using the official guide (Server)

- xCAT install and update software (Linux)

- Impact test noatime Linux file access time (Linux)

 
         
  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:      
 
- Recover Ubuntu 14.04 wakes up from standby in case mouse keyboard appears dead (Linux)
- Linux Kernel 4.2 Installation Instructions (Linux)
- Elaborate .NET Multithreading: Concepts (Programming)
- Performance Optimization: Using Ramlog transfer log files to memory (Linux)
- How to install CentOS 7.x in OpenERP (Odoo) (Linux)
- Update GAMIT10.6 command (Linux)
- Compare Dalvik virtual machine and the JVM (Linux)
- YUM install desktop environment in CentOS (Linux)
- Oracle database file path changes (Database)
- How to install the latest version of the Eclipse in Ubuntu 14.04 (Linux)
- CentOS 6.6 x64 Oracle Database 11gR2 RAC automated installation scripts (Database)
- Android memory optimization of the memory cache (Linux)
- Postgres-X2 deployment steps (Database)
- Linux system security settings (Linux)
- C ++ Const breaking rules (Programming)
- Ubuntu install code editor Sublime Text 3 (Linux)
- Windows 7 hard disk installation notes Debian (Linux)
- How to upgrade the kernel to 3.13.7 on Ubuntu / Linux Mint (Linux)
- Classical sorting algorithm - Selection Sort (Linux)
- Linux platform to prevent hackers to share practical skills (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.