[nginx settings] How do I combine a proxy pass: unix with a TCP:Port options?
October 12, 2019 06:13AM
I have an Ubuntu 18.04 with VestaCP
(A Lightweight Web Hosting Control Panel which is simple and does exactly what I want to do with a few simple clicks)
for Hosting my Python Apps using Gunicorn.

I have configured Gunicorn to use a unix socket for more speed/performance and when I use that socket on my nginx settings file, I cannot use other options or I do not know how to use/combine them with proxy_pass unix socket.

VestaCP provides me customized settings for my web-apps for they are not customized for unix sockets
The reason I want to combine those settings with unix socket I can do my job a lot easier for customized error documents

When I don't use proxy_pass, an example of 404 Error:

If I use proxy_pass with Unix socket I get this:

and my settings
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 90
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready