Im getting 403 forbidden error in ngnix I just installed ngnix and changed root to a file that I want to be hosted but it's still showing that 403 error
Asked
Active
Viewed 2,327 times
1 Answers
1
The default nginx user will not have access to the file system under your username. So you will have to give access to those files.
Here is something you can try:
Try adding user user_name staff;
at the start of nginx.conf file as suggested here
Note: user_name
in above would be your username that has access to the file directory.

LeelaPrasad
- 416
- 3
- 4