![]() ![]() The solution was to recreate the conf files directly in the conf.d folder, instead of copying them from another location: sudo vi /etc/nginx/conf.d/. root root unconfined_u:object_r: httpd_config_t:s0. Whereas it should be something like: -rw-r-r. notroot notroot unconfined_u:object_r: user_home_t:s0. Running : ls -lZ /etc/nginx/conf.d/ did indeed help me identify the permission issue: it showed me that the conf files didn’t had the right permissions ( and SELinux context ). In my case, i had copied the *.conf files in conf.d from another folder, of another user (notroot). ![]() Open() "/etc/nginx/conf.d/.conf" failed (13: Permission denied) in /etc/nginx/nf:31 im trying to get a list of all the files in a certain directory on my site and I keep getting this error: Warning: scandir(./downloads/updates) function. ![]() log in /var/log/nginx/error.log showing:.sudo nginx -t reporting that the syntax of the conf file was Ok,.The i believe i’ve followed all the steps correctly with the how to htaccess files, if Apache's document root # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000įastcgi_pass unix:/var/run/php5-fpm.sock įastcgi_param PATH_INFO $fastcgi_path_info # proxy the PHP scripts to Apache listening on 127.0.0.1:80 # redirect server error pages to the static page /50x.html # Load configuration files for the default server block. # Load config files from the /etc/nginx/conf.d directory '"$http_user_agent" "$http_x_forwarded_for"' Īccess_log /var/log/nginx/access.log main Log_format main '$remote_addr - $remote_user "$request" ' #error_log /var/log/nginx/error.log info #error_log /var/log/nginx/error.log notice I keep getting a forbidden error when i try to access my webpage, this is what the nginx error log shows: /usr/Solder/TechnicSolder/public/index.php" is forbidden (13: Permission denied), client: 1.123.51.252, server: request: "GET / HTTP/1.1", host: " I’ve tried to add permission to the user group ‘nginx’ to read and write, via chmod, but it didnt work. I’ve been trying to look for a solution on the net, but i haven’t had much luck So i’m pretty sure its a simple fix i haven’t been able to figure out :) To start with i’ve just freshly started off with linux, still wrapping my head around a lot of things. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |