My Local site was working then when I tried to relaunch it later the same day I got an 502 Error:
The page you requested generated a server error and could not be processed.
If you continue to get this message after refreshing, try restarting the Local site.
I tried updating Local, restarting the computer, etc.
I looked in the Local Router Logs and found these lines:
2021/08/21 02:12:33 [error] 17252#18240: *5 connect() failed (10061: No connection could be made because the target machine actively refused it) while connecting to upstream, client: ::1, server: bookflix.local, request: “GET / HTTP/1.1”, upstream: “http://127.0.0.1:10010/”, host: “bookflix.local”
2021/08/21 02:12:35 [error] 17252#18240: *5 connect() failed (10061: No connection could be made because the target machine actively refused it) while connecting to upstream, client: ::1, server: bookflix.local, request: “GET /favicon.ico HTTP/1.1”, upstream: “http://127.0.0.1:10010/favicon.ico”, host: “bookflix.local”, referrer: “http://bookflix.local/”
I created a new site and everything worked fine, so I believe the problem could be due to me uninstalling my GDATA Antivirus program.
I thought it could have changed some host permissions, I went in the etc/hosts file and compared the failing website and the one working properly.
Failing website:
::1 bookflix.local #Local Site
127.0.0.1 bookflix.local #Local Site
::1 www.bookflix.local #Local Site
127.0.0.1 www.bookflix.local #Local Site
Working website:
::1 testsite.local #Local Site
127.0.0.1 testsite.local #Local Site
::1 www.testsite.local #Local Site
127.0.0.1 www.testsite.local #Local Site
Everything seems the same so I have no idea where the problem comes from and how to solve it.
Please help.