Questions tagged [nginx-unit]

Dynamic application server which runs code in a variety of languages

5 questions
2
votes
2 answers

nginx location not opening static site

My nginx configuration is not working as expected. This is my location config in nginx.conf: location / { proxy_pass "https://localhost:9002"; } location /app { root /usr/local/var/www; …
2
votes
0 answers

Logging response in using nginx ingress controller

For regulatory purposes, I'm trying to log the entire response when using the nginx ingress controller for Kubernetes. From looking at the documentation and other answers here, I'm using the body_filter_by_lua_block directive. My configmap for…
mhermann
  • 21
  • 3
0
votes
2 answers

Why is the Nginx PHP Unit ignoring the root parameter in this configuration file?

I'm trying to move example.com from a multisite WordPress installation into its separate WordPress installation folder. I've already setup a separate database and created a new file wp-config.php for the new WordPress installation with the…
rraallvv
  • 123
  • 6
0
votes
1 answer

NGINX config proxy_set_header Host $host prevents IP address from being set

My NGINX server has following Server Block upstream main { least_conn; #Add entries one per upstream server server web01:4000 max_fails=3 fail_timeout=5s; server web01:4001 max_fails=3 fail_timeout=5s; } server { …
0
votes
0 answers

How to trim part of the path when matching in an NGINX Unit route?

I am trying to serve the files under /data/files with NGINX Unit: /data ├─ /logs └─ /files └─ /image1.png └─ ... image1.png, for example, should be accessible to the client as /media/image1.png. I started by creating a route that looks…
Nathan Osman
  • 2,725
  • 7
  • 32
  • 46