Vely logo install examples
documentation about

14.2.0 released on Nov 29, 2022

Connect nginx tcp socket



DESCRIPTION:


This shows how to connect your application listening at TCP port <port number> (started with "-p" option in vf) to Nginx web server.

Step 1:
You will need to edit the Nginx configuration file. For Ubuntu and similar:

sudo vi /etc/nginx/sites-enabled/default

while on Fedora and other systems it might be at:

sudo vi /etc/nginx/nginx.conf


Add the following in the "server {}" section ("/<app path>" is the application path, see request_URL):

location /<app path> { include /etc/nginx/fastcgi_params; fastcgi_pass  127.0.0.1:<port number>; }

Step 2:
Finally, restart Nginx:

sudo systemctl restart nginx


SEE ALSO:


Web servers ( connect_apache_tcp_socket   connect_apache_unix_socket   connect_nginx_tcp_socket   connect_nginx_unix_socket  )  SEE ALL (documentation)



Copyright (c) 2022 DaSoftver LLC. Vely is a trademark of Dasoftver LLC. The software and information herein are provided "AS IS" and without any warranties or guarantees of any kind. Some icons copyright PaweĊ‚ Kuna licensed under MIT. Vely elephant logo copyright DaSoftver LLC. This web page is licensed under CC-BY-SA-4.0.