# Nginx wrong with systemd

**URL:** <https://www.ruby-forum.com/t/nginx-wrong-with-systemd/244573>\
**Category:** NGINX\
**Created:** [May 5, 2016, 12:36pm UTC](https://www.ruby-forum.com/t/nginx-wrong-with-systemd/244573 "2016-05-05T12:36:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sadaf\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/858c86/32.png) [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Post date:** [May 5, 2016, 12:36pm UTC](https://www.ruby-forum.com/t/nginx-wrong-with-systemd/244573/1 "2016-05-05T12:36:17Z")

</div>

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

Posted at Nginx Forum:

> **[nginx wrong with systemd](https://forum.nginx.org/read.php?2,266640,266640#msg-266640)**
>
> 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 /\]syst

---

<div class="post-metadata">

**Author:** ![supersnd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/278dde/32.png) [@supersnd](https://www.ruby-forum.com/u/supersnd)\
**Post date:** [May 6, 2016, 5:02am UTC](https://www.ruby-forum.com/t/nginx-wrong-with-systemd/244573/2 "2016-05-06T05:02:56Z")

</div>

question is on selinux,

Posted at Nginx Forum:

> **[Re: nginx wrong with systemd](https://forum.nginx.org/read.php?2,266640,266661#msg-266661)**
>
> 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 /\]syst
