# Local 2.3.2 - Custom environment

**URL:** <https://community.localwp.com/t/local-2-3-2-custom-environment/7346>\
**Category:** Uncategorized\
**Created:** [July 15, 2018, 9:16am UTC](https://community.localwp.com/t/local-2-3-2-custom-environment/7346 "2018-07-15T09:16:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Webtica](https://avatars.discourse-cdn.com/v4/letter/w/bbe5ce/32.png) [@Webtica](https://community.localwp.com/u/Webtica)\
**Post date:** [July 15, 2018, 9:16am UTC](https://community.localwp.com/t/local-2-3-2-custom-environment/7346/1 "2018-07-15T09:16:43Z")

</div>

Hey!

When using Custom environment on local 2.3.2 on windows it gives a Request Error 502 router error.  
When looking at the router log files it says:

Update: It does seem to be only with Nginx. It works with apache.

2018/07/15 09:14:45 [error] 6#6: \*1 upstream prematurely closed connection while reading response header from upstream, client: 172.18.0.5, server: test.local, request: “GET /2018/07/15/hello-world/ HTTP/1.1”, upstream: “[http://192.168.95.100:4020/2018/07/15/hello-world/](http://192.168.95.100:4020/2018/07/15/hello-world/)”, host: “test.local”, referrer: “[http://test.local/2018/07/15/hello-world/](http://test.local/2018/07/15/hello-world/)”  
2018/07/15 09:14:45 [error] 6#6: \*3 upstream prematurely closed connection while reading response header from upstream, client: 172.18.0.5, server: test.local, request: “GET /index.php/2018/07/15/hello-world/ HTTP/1.1”, upstream: “[http://192.168.95.100:4020/index.php/2018/07/15/hello-world/](http://192.168.95.100:4020/index.php/2018/07/15/hello-world/)”, host: “test.local”, referrer: “[http://test.local/index.php/2018/07/15/hello-world/](http://test.local/index.php/2018/07/15/hello-world/)”  
2018/07/15 09:14:47 [error] 6#6: \*5 upstream prematurely closed connection while reading response header from upstream, client: 172.18.0.5, server: test.local, request: “POST /wp-cron.php?doing\_wp\_cron=1531646087.2716650962829589843750 HTTP/1.1”, upstream: “[http://192.168.95.100:4020/wp-cron.php?doing\_wp\_cron=1531646087.2716650962829589843750](http://192.168.95.100:4020/wp-cron.php?doing_wp_cron=1531646087.2716650962829589843750)”, host: “test.local”, referrer: “[http://test.local/wp-cron.php?doing\_wp\_cron=1531646087.2716650962829589843750](http://test.local/wp-cron.php?doing_wp_cron=1531646087.2716650962829589843750)”

All the best.  
Dieter

---

<div class="post-metadata">

**Author:** ![jasonm4130](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/jasonm4130/32/5810_2.png) [@jasonm4130](https://community.localwp.com/u/jasonm4130)\
**Post date:** [July 16, 2018, 12:14am UTC](https://community.localwp.com/t/local-2-3-2-custom-environment/7346/2 "2018-07-16T00:14:11Z")

</div>

I’m experiencing this as well.
