I am setting up a very simple file server system. I install nginx and set its root directory to /home to make it serve files from users' home directories.
However, when I attempt to download files via http://12.34.56.78/user1/testfile.bin with my browser, it says "403 Forbidden". When I connect to http://12.34.56.78/ with my browser, however, it displays default index page that I've put in /home/.
How do I make nginx serve files from user directories? e.g.
/home/user1
/home/user2
Additionaly, If I wanted to exclude root directory
/home
and system files
.bash_history
.bash_profile
.bashrc
(say, all files whose names start with a dot)
from the files being served?