Questions tagged [nginx-config]

2020 questions
3
votes
1 answer

Catch-all nginx server blocks for invalid subdomains

I have multiple domains on a single host, and nginx manages all of them. Each domain has it's own SSL certificate (which I get from certbot, using the "webroot" plugin). I have a server block at the end of each config file, as a "catch-all" (from…
lonix
  • 14,255
  • 23
  • 85
  • 176
3
votes
0 answers

nginx SSL (SSL: error:14201044:SSL routines:tls_choose_sigalg:internal error)

I've search a bunch of questions to set the correct configuration for nginx SSL, but my EC2 website isn't online. Actually when It was only HTTP protocol (80) it was working fine. Steps I made 1 - Set security group for ec2 opening traffic for all…
3
votes
0 answers

NGINX 502 Bad Gateway error inside Docker container

I haven't had any issues with my Docker container or NGINX until today where I am getting a random unexpected 502 Bad Gateway error even though I have made no changes to my configuration files, Docker files, or any other file in my project. The 502…
3
votes
4 answers

Configure Nginx reverse proxy for MQTT

I'm trying to setting up a reverse proxy that resolve localhost:8081 to a broker installed on an other machine. My Nginx config file is: worker_processes 1; events { worker_connections 1024; } server { listen 8081; server_name…
Luca Lotifi
  • 39
  • 1
  • 1
  • 6
3
votes
2 answers

What does ssl_verify_depth mean in nginx.conf?

I am wondering what does ssl_verify_depth mean in nginx.conf? The docs are not very detailed, there is just this sentece: Sets the verification depth in the client certificates chain. What does increasing or decreasing do? I've noticed that…
sashoalm
  • 75,001
  • 122
  • 434
  • 781
3
votes
4 answers

Nginx cache size not growing above 344GB

I have Nginx cache server built on Ubuntu 18 and with docker image nginx:1.19.10-alpine. Ubuntu 18 disk usage details given below for reference ubuntu@host_name:~$ df -h Filesystem Size Used Avail Use% Mounted on udev …
PraveenKumar Lalasangi
  • 3,255
  • 1
  • 23
  • 47
3
votes
2 answers

Issue: nginx: [emerg] mkdir() "/var/cache/nginx/client_temp" failed (13: Permission denied)

I am trying to run Nginx on Openshift but facing this directory permissions issues. Due to this error container is not creating. The following permissions are set to files created manually. drwxr-xr-x. 3 root root 79 Dec 22 02:50…
3
votes
0 answers

How to proxy websocket request to TCP backend using nginx

I wanted to configure nginx to proxy websocket data from a websocket web client to a TCP server using nginx. This comes from the fact that a web client can't connect directly to a TCP server. Describe what you’ve tried I tried to use the…
Soufiane
  • 31
  • 2
3
votes
1 answer

Kubernetes NGINX Ingress Controller 404 Not found / Object not found

I am taking a course in Udemy and I am new to the world of Kubernetes and I am trying to configure ingress nginx controller in Kubernetes but it returns 404 not found when i send a request at specified URL, it has been 10 days that I am trying to…
3
votes
2 answers

Need Certificate chain (on the incoming interface) from Nginx

I am using a setup wherein a chain certificate(Root CA Cert-> Intermediate CA Cert -> Client Cert) is being sent to the Nginx. I need to configure Nginx in such a way that it forwards the entire certificate chain to the middleware. Right now, it is…
mandeep
  • 433
  • 8
  • 17
3
votes
2 answers

How can I get the content of all cookies in "Set-Cookie" header returned by upstream in nginx

Similar to the issue mentioned here https://forum.openresty.us/d/6503-get-content-of-second-set-cookie-header I have an NGINX configuration that gets the cookies stored in Set-Cookie by the upstream auth_request and I need to return those set-cookie…
Ray
  • 1,134
  • 10
  • 27
3
votes
1 answer

What does $connection_time mean in nginx?

I need some time data for optimizing nginx. But I can not find the meaning of $connection_time variable. Offical document explains(http://nginx.org/en/docs/http/ngx_http_core_module.html#var_connection_time): connection_time connection time in…
Guan
  • 53
  • 3
3
votes
0 answers

how to print current value of a running uwsgi configuration options

I'm not sure why this question was not asked before. But I want to check current value of a running uwsgi configuration options, such as socket-timeout or uwsgi_read_timeout. The reason being is that by checking the current values, I can confirm the…
techie11
  • 1,243
  • 15
  • 30
3
votes
3 answers

conditional nginx rewrite rule that exclude redirecting to www if www is already in request

I am using nginx for managing multiple domains for reverse proxy. I want to redirect all http request to https server { listen 80 default_server; listen [::]:80 default_server; server_name _; return 301…
Krunal
  • 2,967
  • 8
  • 45
  • 101
3
votes
0 answers

supervisor: couldn't exec /home/clouditech/bin/gunicorn_start: ENOEXEC: supervisor: child process was not spawned

I continuously get this error message when trying to deploy my Django app with Nginx and Gunicorn. I've almost read and implemented all suggestions about this issue on ST.Overflow I've already implemented the following. 1. Ensured there is a…
sam hassan
  • 197
  • 3
  • 14