Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I cannot resolve this problem for days. I've installed nginx on the latest ubuntu server on virtualbox. I have a shared virtualbox folder which contains the web root. The owner of web root is root and its group is vboxsf. I've added www-data user to the vboxsf group and verified it via "groups www-data". The user of nginx is www-data. I can verify this by "ps aux | grep nginx". But I still get 403 forbidden when trying to access index.html. Please help!!!

share|improve this question
    
Have you checked for file/directory ACLs? –  mdpc Sep 19 '12 at 18:09
    
Have you checked permissions on the parent directories of the web root, not just the file in question? –  cjc Sep 19 '12 at 18:15
    
yes I did. The path is /media/webroot and both media and webroot have 770 privliges. –  yaniv Sep 19 '12 at 19:43
    
I dont know if it's a proper way to check access - I checked with sudo -u www-data ls -al /media/webroot and it worked! So www-data must have the proper priviles, right? –  yaniv Sep 19 '12 at 19:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.