Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

nginx wrong with systemd (no replies)

$
0
0
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

Viewing all articles
Browse latest Browse all 7229

Trending Articles



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