Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

How do i set default/standard permissions for a web server root?

$
0
0
I have a web server root defined at /opt/server, however when I try to access my server in the browser, I get 403 forbidden on any path.

How do I reset every file & directory in the web root so that nginx can access the contents? Also I would like my local user (username "john", default group "users") to have full read/write/execute access to the web server directory & files as well.

I'm using arch linux, so the user & group for nginx is "http" and not "www-data".

Currently, these are the permissions for my web root directory: "drwxrwx--- john users"

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>