How do i set default/standard permissions for a web server root?
February 24, 2019 10:43AM
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"



Edited 3 time(s). Last edit at 02/24/2019 10:46AM by bergqvistjl.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 212
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready