Config reverse proxy used 'localhost' will cause 'upstream time out' error
|Reported by:||Vincent IUnKnown||Owned by:|
|nginx -V:||nginx version: nginx/1.4.2|
I try to config a reverse proxy server from nginx, in the 'upstream' section, when I set like 'server localhost:8080', It may make a errer 'upstream timed out' in the error.log file.
When I test more, I found that nginx was well for proxy my tomact on 8080 port, but it was bad when proxy a http-server provided by 'web.py'- A python web framework.
If I change the config file that replace the 'localhost' with the IP, all of these will work well.
The version is 1.4.2