DEV Community

Cover image for Nginx front / Nginx Unit-PHP Back
markrunryder
markrunryder

Posted on

Nginx front / Nginx Unit-PHP Back

Moving from PHP-FPM to PHP-SAPI? This refactoring looks promising. I am coming to the conclusion that "Nginx Unit" will not and should not supplant classic Nginx. Just look at all the Unit doc listener examples. Beside a speed increase, replacing FPM with SAPI allows for instant environment updates without restarting anything. Just a curl PUT.

Nginx Unit 1.29.0, released on December 15, 2022
Listeners: On Linux-based systems, abstract UNIX sockets can be used as well...

unix:/filesocketheadache (problems)
verses
unix:@abstractsocketmagic (problem solved)

Abstract UNIX (virtual) sockets only work with Linux. They are virtual and unlike classic socket files, their existence goes away when apps stop or systems reboot.

(DEV) Using Nginx as a proxy to multiple Unix sockets...
https://dev.to/vearutop/using-nginx-as-a-proxy-to-multiple-unix-sockets-3c7a

Google search...
"nginx unit" abstract unix socket

Top comments (0)