The original post: /r/nginx by /u/AdditionalRelief2475 on 2025-02-18 17:33:52.

I have nginx running on my server, and have an entire partition dedicated to HTTP data (at /data). I modified the configuration file so that the root directory is at /data/html but accessing index.html results in an error 500. The user used is netguest. The error logs show that the user netguest does not have the valid permissions to access the file. Upon closer inspection, the guest user cannot access the folder at /data/html either, but can access /data fine. /data and its descendant directories/files all have permissions 775 or -rwxrwxr-x and are owned by user root and group admins. Changing the user in the config file to root fixes the problem but poses a large security risk for obvious reasons.

Can anyone tell me what the problem is?