Is it like the apache mod_php for php for example ?
Thanks in advance for your answer
Is it like the apache mod_php for php for example ?
Thanks in advance for your answer
No real idea if it does so using fcgi or some other socket-based proxying, or if the unit is spun up as a separate process and handed the raw socket and some shared memory after the headers are parsed (closer to how mod_php works).
You can see the PHP configuration here:
http://unit.nginx.org/docs-configuration.html#php-applicatio...
And here's the configuration needed to integrate Unit with NGINX:
Upon first reading I thought that Unit needed to be behind NGINX to function. When actually it listens for requests as a separate server, entirely. It only provides an API for configuration purposes.
However, If you want to use the other features of NGINX, like providing static files, you will need to put it in front of Unit.