Local Community

I cant make it run Apache in SSD Sandisk

I have a sandisk ssd disk where I want to install a Flywheel website there, but I don’t email Apache.

Every time I install it I get “Request Error 502”

He asks me to see the “Local Router Logs” but I don’t understand what he says.

When I install WP on NGINX if it works for me (if I install it on my Mac’s SSD if it works), the problem only happens with Apache.

I copy the Log to help me read it and find the error.

2019/08/21 19:31:29 [error] 6#6: *1 upstream prematurely closed connection while reading response header from upstream, client: 172.18.0.3, server: wpssd.local, request: "GET /2019/08/21/hello-world/ HTTP/1.1", upstream: "http://192.168.94.100:4028/2019/08/21/hello-world/", host: "wpssd.local", referrer: "http://wpssd.local/2019/08/21/hello-world/"
2019/08/21 19:31:29 [error] 6#6: *3 upstream prematurely closed connection while reading response header from upstream, client: 172.18.0.3, server: wpssd.local, request: "GET /index.php/2019/08/21/hello-world/ HTTP/1.1", upstream: "http://192.168.94.100:4028/index.php/2019/08/21/hello-world/", host: "wpssd.local", referrer: "http://wpssd.local/index.php/2019/08/21/hello-world/"
2019/08/21 19:31:29 [error] 6#6: *5 upstream prematurely closed connection while reading response header from upstream, client: 172.18.0.3, server: wpssd.local, request: "POST /wp-cron.php?doing_wp_cron=1566415889.8900339603424072265625 HTTP/1.1", upstream: "http://192.168.94.100:4028/wp-cron.php?doing_wp_cron=1566415889.8900339603424072265625", host: "wpssd.local", referrer: "http://wpssd.local/wp-cron.php?doing_wp_cron=1566415889.8900339603424072265625"
2019/08/21 19:31:46 [error] 6#6: *7 upstream prematurely closed connection while reading response header from upstream, client: 192.168.94.1, server: wpssd.local, request: "GET / HTTP/1.1", upstream: "http://192.168.94.100:4028/", host: "wpssd.local"
2019/08/21 19:31:46 [error] 6#6: *8 upstream prematurely closed connection while reading response header from upstream, client: 192.168.94.1, server: wpssd.local, request: "GET /robots.txt HTTP/1.1", upstream: "http://192.168.94.100:4028/robots.txt", host: "wpssd.local"
2019/08/21 19:31:46 [error] 6#6: *8 upstream prematurely closed connection while reading response header from upstream, client: 192.168.94.1, server: wpssd.local, request: "GET /favicon.ico HTTP/1.1", upstream: "http://192.168.94.100:4028/favicon.ico", host: "wpssd.local", referrer: "http://wpssd.local/"
2019/08/21 19:37:08 [error] 6#6: *12 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.94.1, server: wpssd.local, request: "GET / HTTP/1.1", upstream: "http://192.168.94.100:4028/", host: "wpssd.local"
2019/08/21 19:37:08 [error] 6#6: *12 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.94.1, server: wpssd.local, request: "GET /favicon.ico HTTP/1.1", upstream: "http://192.168.94.100:4028/favicon.ico", host: "wpssd.local", referrer: "http://wpssd.local/"

Any help please?

Hey @jvera

The “502 Request Error” is fairly common. Can you take a look at this FAQ and see if the troubleshooting steps help fix things?

Can you also please provide your local-by-flywheel.log file? See this Community Forum post for instructions on how to do so: