Nginx is logging 301 entries in the wrong access file

I have a question about how 301 entries are logged. A bit of background: I created a new Ubuntu/Nginx server and added a site. By default, NGINX logs to /var/log/nginx/access.log I edited one site conf log to its own file:: error_log /var/log/nginx/www.foo.com-error.log error; access_log /var/log/nginx/www.foo.com-access.log; The site logs successfully, except that 301 entries are still…

Configure Nginx for Listening Multiple Ports

Hi I am trying to create multiple applications that listen different ports on one server with one ip address (without domain name, subdomain). Application A listens port 80 Application B listens port 8080 And I want to access two applications separately through http//xxx.xxx.xxx.xxx:80 and http//xxx.xxx.xxx.xxx:8080 If I have domain name I can create multiple subdomain,…

Nginx delay invalid parameter

I have this in /etc/nginx/conf.d/gessin.conf server { listen 80 ; listen [::]:80 ; server_name admin.example.com; root /home/developer/www/admin; client_body_timeout 5s; client_header_timeout 5s; index index.php index.html index.htm; location / { try_files $uri $uri/ /index.php?$args; } location ~ \.php$ { limit_req zone=http burst=20 delay=8; limit_conn addr 10; try_files $uri =404; fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include…