Working config part: location / { proxy_pass http://sites; proxy_redirect http://192.168.1.135:8080 http://192.168.1.135; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } If problems with SELinux won't dissapear you need to turn httpd_can_network_connect directive on: # sudo setseboolby lopar - How to...
I try to use upstream and proxy for load balancing on CentOS 7 Minimal, but something is wrong. I use this manual: http://nginx.org/en/docs/http/load_balancing.html. When I open Nginx localhost in browser, it tells me, that «Site is temporarily unavailable» and writes this strings in error log: 2016/04/13 18:36:59 5427#0: *20 connect() to 192.168.1.240:8080 failed (13: Permission denied) whiby lopar - How to...
![]() |
![]() |
![]() |
![]() |
|