# Difference between socket- and port-based connection to outer NGINX?

**URL:** <https://meta.discourse.org/t/difference-between-socket-and-port-based-connection-to-outer-nginx/60071>\
**Category:** Self-hosting\
**Created:** [29 Marzo 2017, 12:09am UTC](https://meta.discourse.org/t/difference-between-socket-and-port-based-connection-to-outer-nginx/60071 "2017-03-29T00:09:05Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![kraml](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kraml/32/68627_2.png) [@kraml](https://meta.discourse.org/u/kraml)\
**Post date:** [29 Marzo 2017, 8:20am UTC](https://meta.discourse.org/t/difference-between-socket-and-port-based-connection-to-outer-nginx/60071/6 "2017-03-29T08:20:19Z")

</div>

You need to put the whole location block inside the server block.

---

_[View the full topic](https://meta.discourse.org/t/difference-between-socket-and-port-based-connection-to-outer-nginx/60071)._
