May 05, 2016 06:35AM
default.conf
location / {
#root /usr/share/nginx/html;
root /sdd/;
#index index.html index.htm;
autoindex on;
[root@centos /]# /usr/sbin/nginx -c /etc/nginx/nginx.conf
I can read the files
[root@centos /]systemd start nginx
403 Forbidden
nginx/1.9.15
I add User=root to nginx.serivce
the question still have
Subject Author Posted

nginx wrong with systemd

supersnd May 05, 2016 06:35AM

Re: nginx wrong with systemd

supersnd May 05, 2016 11:02PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 274
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