This shows you the differences between two versions of the page.
— |
nginx [2014/01/29 18:04] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Nginx ====== | ||
+ | |||
+ | Nginx - is an HTTP-server, | ||
+ | |||
+ | Here are some error you can make in configuration | ||
+ | |||
+ | ===== Error 1 - the same IP address ===== | ||
+ | |||
+ | Trade script logs IP addresses and it's very important for script run by Apache to get real IP from nginx. So the first error is passing 127.0.0.1 or server' | ||
+ | |||
+ | Open in browser / | ||
+ | |||
+ | ===== Error 2 ===== | ||
+ | |||
+ | When nginx passes surfer' | ||
+ | |||
+ | How to check : open / | ||
+ | |||
+ | HTTP_FORWARED_FOR is a field basicly added by proxies, so if SmartCJ sees this field it thinks that a hit comes via proxy. | ||
+ | |||
+ | How to fix: ask admin to pass ip in REAL_IP only. After you have it fixed make sure there' | ||
+ | |||
+ | REMOTE_ADDR and REAL_IP - your real IP, SERVER_ADDR - server' | ||
+ | |||
+ | |||
+ | |||
+ | |||