Re: nginx subsite configuration not working

2020-08-01 Thread Kaushal Shriyan
On Sat, Aug 1, 2020 at 10:42 PM Thomas Ward wrote: > 301 Redirects don't work for full system paths because they are returned > to the client saying "go here instead". It then interprets your path as a > URI which doesn't exist inside your site docroot. > > You might have meant to use `root` ins

Request Time in Nginx Log as always 0.000 for HIT Request

2020-08-01 Thread anish10dec
We are observing a behavior where request time and upstream response time is logged as same value when request is MISS in log file. And when there is HIT for the request , request time is logged as 0.000 for all the requests. Please help what could be the reason for this , we tried compiling from

Re: nginx subsite configuration not working

2020-08-01 Thread Thomas Ward
301 Redirects don't work for full system paths because they are returned to the client saying "go here instead".  It then interprets your path as a URI which doesn't exist inside your site docroot. You might have meant to use `root` instead of `return 301` here to serve the data directly from t

nginx subsite configuration not working

2020-08-01 Thread Kaushal Shriyan
Hi, I am running nginx version: nginx/1.16.1 on CentOS Linux release 7.8.2003 (Core). I am setting up the Nginx subsite configuration. The details are as follows. [root@developerportal www]# pwd /var/www [root@developerportal www]# ls -l total 0 drwxr-xr-x 2 root root 6 Apr 2 18:44 cgi-bin dr

Nginx spending high CPU in perf tests (vs HAProxy)

2020-08-01 Thread shadyabhi
Two scenarios:- * When upstream supports higher aggregate QPS than what Nginx can support on a host, nginx has better CPU performance than HAProxy. (Nginx == 700% CPU, HAProxy = 1200% CPU) * When upstream capacity is limited, and my benchmarking tool sends QPS higher than what the upstream suppo

RE: When does NGINX start logging

2020-08-01 Thread Reinis Rozitis
> I'm going over some Web Server STIGs (referenced here: > https://www.stigviewer.com/stig/web_server_security_requirements_guide > /) to make sure my NGINX web server is configured to comply with those > security requirements. One of the requirements is that "The web server must > initiate session