nginx : access.log and error.log file empty -
i have installed nginx on ubuntu 14.04 using command
sudo apt-get install nginx
now, when open browser , type in address localhost correctly shown "welcome nginx" page. also, checked config file located in /etc/nginx/nginx.conf , found following log settings:
access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; however, when check these 2 files, both empty. have opened localhost page multiple times still log files empty. might wrong setup ?
i had same issue after reinstalling nginx newer version. seems log files ownership changed , new nginx couldn't save there.
removing log files , reloading nginx worked me:
$ sudo rm -f /var/log/nginx/* $ sudo nginx -s reload
Comments
Post a Comment