Questions tagged [nginx-unit]

From NGINX website https://www.nginx.com/products/nginx-unit/: NGINX Unit is a dynamic application server, capable of running beside NGINX Plus and NGINX Open Source or standalone. Unit supports a RESTful JSON API, deploys configuration changes without service disruptions, and runs apps built with multiple languages and frameworks. Designed from scratch around the needs of your distributed applications, it lays the foundation for your service mesh.

22 questions
0
votes
0 answers

Make file dynamically with nginx_unit and django

I am trying to make with this csv_file = 'static/result.csv' with open(csv_file,'a') as f: It works on python manage runserver However on nginx_unit there comes error like this, PermissionError: [Errno 13] Permission denied: 'result.csv' static…
whitebear
  • 11,200
  • 24
  • 114
  • 237
0
votes
1 answer

Enable gzip compression on NGINX Unit

Enabling gzip compression on pure NGINX is relatively simple. However, I want to enable gzip compression for NGINX Unit. I'm not seeing anything on the NGINX Unit configuration man page about how to do the same for NGINX Unit. Is the option not…
Daniel Kats
  • 5,141
  • 15
  • 65
  • 102
0
votes
1 answer

nginx-unit with PHP generates Server 500 error on any PHP file not found

This is specific to nginx-unit the somewhat new mini web server from NGINX team, NOT the typical nginx + php-fpm combination. I followed the nginx-unit symfony example down to the exact byte https://unit.nginx.org/howto/symfony/ and it works, except…
Michael Butler
  • 6,079
  • 3
  • 38
  • 46
0
votes
1 answer

Nginx unit not working with django (ModuleNotFoundError: No module named 'encodings')

I keep getting: ModuleNotFoundError: No module named 'encodings' in the unit error logs when trying to add new configuration. Fatal Python error: Py_Initialize: Unable to get the locale encoding ModuleNotFoundError: No module named…
Deepak
  • 13
  • 6
0
votes
1 answer

IOException: Stream closed when uploading files to server

My app is throwing this error when trying to upload any file: java.io.IOException: Stream closed at java.base/java.io.PushbackInputStream.ensureOpen(PushbackInputStream.java:75) at…
Fireburn
  • 981
  • 6
  • 20
0
votes
0 answers

Unexpected blocking behavior

I have a Java web app with a HTTP GET method with this code (inside a servlet): Certificate certificate = Observable.range(1, 10) .delay(3, TimeUnit.SECONDS) .filter(integer -> { try { …
quarks
  • 33,478
  • 73
  • 290
  • 513
-1
votes
1 answer

Nginx Unit configuration cannot be applied for PHP/Laravel app. Permission issue, even with 777

I'm following this how-to: https://unit.nginx.org/howto/laravel/, with small modifications (basically changed the folder name). Whenever I try to send the configuration JSON with CURL, I get this error message: 2023/06/15 20:01:27 [info] 5192#5192…
Victor Ribeiro
  • 577
  • 7
  • 20
1
2