September 7, 2023 ~1 minute minutes read Admin

Nginx root in home/user

Image description

I use my laptop to edit web sites, among other things. So I run the web server nginx just for that.

In Archlinux the web root is by default /usr/share/nginx/html

I have a directory named www in my home folder which is a symlink to whatever web site I'm editing at the time

In order to give nginx and it's default worker user http access to this directory I added the user http to my users default group

sudo gpasswd -a http mygroup