DEV Community

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

Posted on

1

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

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more