# \[Solved\] Nginx gives Error 502 with Mattermost

**URL:** <https://forum.mattermost.com/t/solved-nginx-gives-error-502-with-mattermost/1915>\
**Category:** Troubleshooting\
**Created:** [July 20, 2016, 9:38am UTC](https://forum.mattermost.com/t/solved-nginx-gives-error-502-with-mattermost/1915 "2016-07-20T09:38:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![a9tm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/a9tm/32/824_2.png) [@a9tm](https://forum.mattermost.com/u/a9tm)\
**Post date:** [July 20, 2016, 9:38am UTC](https://forum.mattermost.com/t/solved-nginx-gives-error-502-with-mattermost/1915/1 "2016-07-20T09:38:55Z")

</div>

Hi, I’ve just installed fresh CentOS 6.8 64 bit system, successfully installed latest Mattermost by following official docs ([http://docs.mattermost.com/install/prod-rhel-6.html](http://docs.mattermost.com/install/prod-rhel-6.html)). Tested running Mattermost OK on TCP/8065 port then installed nginx 1.10.1 from its repo. But Nginx gave Error 502, though I still can access Mattermost:8065 with out problem. I disabled iptables, ip6tables, and SElinux just in case but still no working.

Does anybody have the same problem?

Edit: Restart server and it works! Sorry for the noise.
