Welcome! Log In Create A New Profile

Advanced

Beginner question - TCP or Sockets ?

Posted by FrenchFry 
FrenchFry
Beginner question - TCP or Sockets ?
November 02, 2017 03:10PM
I'm new to Nginx and the technology in general. I have spent some time on
nginx.org. The one thing I'm not sure of is if I need to configure my web
server, which is Thin (ruby), with sockets or should TCP be enough. The
reason I ask is because a number of tutorial and blog posts seem to say that
the two servers can communicate via tcp but at the same time most setups
seem to be done with sockets.

I'm looking for Nginx to serve static files, specifically media files, but
not anything that resides in my site's public folder. Anyway, to repeat, do
I need sockets set up or should tcp be enough. So far tcp has not worked for
me. Thanks for any advice , direction.

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,277173,277173#msg-277173

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Ruslan Ermilov
Re: Beginner question - TCP or Sockets ?
November 02, 2017 04:50PM
On Thu, Nov 02, 2017 at 10:00:34AM -0400, FrenchFry wrote:
> I'm new to Nginx and the technology in general. I have spent some time on
> nginx.org. The one thing I'm not sure of is if I need to configure my web
> server, which is Thin (ruby), with sockets or should TCP be enough. The
> reason I ask is because a number of tutorial and blog posts seem to say that
> the two servers can communicate via tcp but at the same time most setups
> seem to be done with sockets.
>
> I'm looking for Nginx to serve static files, specifically media files, but
> not anything that resides in my site's public folder. Anyway, to repeat, do
> I need sockets set up or should tcp be enough. So far tcp has not worked for
> me. Thanks for any advice , direction.

https://serverfault.com/questions/124517/whats-the-difference-between-unix-socket-and-tcp-ip-socket

In short: any way would do, when properly configured.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
FrenchFry
Re: Beginner question - TCP or Sockets ?
November 02, 2017 06:00PM
Ok, then I know I'm on the right track. Thanks for the link.
It must be something in my conf that is tripping me up.

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,277173,277176#msg-277176

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Sorry, only registered users may post in this forum.

Click here to login