View Single Post
  #54  
Old 5th November 2012, 10:39
abdi abdi is offline
Senior Member
 
Join Date: Sep 2012
Posts: 118
Thanks: 0
Thanked 10 Times in 6 Posts
Default

OK, indeed that missing file is the root cause of all problems since when I disable it in /etc/nginx/sites-enabled

" auth_basic_user_file /var/www/clients/client1/web1/.htpasswd_stats;" everything works fine.

However if I try to manually create it with:

# touch /var/www/clients/client1/web1/.htpasswd_stats
touch: cannot touch `/var/www/clients/client1/web1/.htpasswd_stats': Permission denied

I get the above, implying my server is unable to create it and that explains why ALL sites can't show /stats/

Till any advice on why my system can't create that file in that path? Thanks
Reply With Quote