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,…