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 setsebool httpd_can_network_connect on -P
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 setsebool httpd_can_network_connect on -P