Nginx for Postgres servers

I know nginx is designed to handle web and mail servers. Does it make
sense to use to handle multiple (in our case 2) PostgreSQL database
servers?

Tom Ekberg
Senior Computer Specialist, Lab Medicine
University of Washington Medical Center
1959 NE Pacific St, MS 357110
Seattle WA 98195
work: (206) 598-8544
email: [email protected]

You mean something like: GitHub - FRiCKLE/ngx_postgres: upstream module that allows nginx to communicate directly with PostgreSQL database. ?

Hello Tom,

If you want to proxy PostgreSQL connections with nginx, you can use
the stream (tcp) proxy for this. Obviously, it will not keep a
persistent connection to the database server, but will open a new
connection for each client.

http://nginx.org/en/docs/stream/ngx_stream_core_module.html

email: [email protected]


nginx mailing list
[email protected]
nginx Info Page


Roman A.