NextCloud using NGINX and UNIT

Valentin V. Bartenev vbart at nginx.com
Fri Apr 19 11:54:44 UTC 2019


On Thursday, 18 April 2019 23:04:00 MSK Peter TKATCHENKO wrote:
> Thank you, it’s really interesting approach! I’ll test it shortly.
> It would be nice to be able to use only nginx features for such decoding though ;) Do you think it is impossible?
> 

These transformations should be done while populating PHP environment variables.
It would be nice to have in Unit configuration, but currently there seems almost
no way to achieve that.  It requires URI rewriting with regular expression and
multiple entry points.

Another approach, where everything is done on the nginx side requires from Unit
some sophisticated way of how to set PHP environment out of HTTP header fields.

On the other hand, using one php script as a single entry point is quite easy
and should not introduce any problems or performance drawbacks.  I don't know
why some php programmers so used to rely on URI rewriting inside the web server
and don't do everything out of the box.

But anyway, we're looking to introducing corresponding abilities in Unit.

  wbr, Valentin V. Bartenev





More information about the unit mailing list