Hi Folks,
I have CentOS 7 with CWP7 at my home server.
So my web server configuration fails, when I try Apache & Varnish Cache & Nginx Reverse Proxy.
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 19534/varnishd
tcp 0 0 192.168.1.220:82 0.0.0.0:* LISTEN 19517/nginx: master
tcp 0 0 127.0.0.1:6082 0.0.0.0:* LISTEN 19533/varnishd
tcp6 0 0 :::80 :::* LISTEN 19534/varnishd
tcp6 0 0 :::8181 :::* LISTEN 13822/httpd
This is ok. Before I haven't saw any Nginx port also.
But the server is behind a router.
CWP Settings > Edit Settings:
Activate NAT-ed Mod: with local ip 192.168.1.220
I get Error 503 Backend fetch failed when I try to load any of websites.
[root@hsrv ~]# curl -I localhost
HTTP/1.1 200 OK
Server: nginx/1.10.3
Date: Sun, 05 Mar 2017 17:13:23 GMT
Content-Type: text/html
Vary: Accept-Encoding
Last-Modified: Tue, 24 Jan 2017 21:00:51 GMT
ETag: W/"13cd-546dd693ee6c0"
X-Cache: HIT from Backend
X-Varnish: 98344
Age: 0
Via: 1.1 varnish-v4
Connection: keep-alive
Also varnish and nginx is here.
The problem comes with Apache I think.
Before a year I fix the same problem by changing IP in apache vhosts template, bud didn't remember.
Can somebody advise?
Thanks!