<div dir="ltr">Hi Andrea,<div><br></div><div>The 404 Forbidden error is because of the permission of that particular file / directory . NGINX process should be able to read that file in <span style="font-size:12.8px">/home/a/all/index.html.  </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Cheers!</span></div><div><span style="font-size:12.8px">Zeal</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 26, 2016 at 4:47 PM, ndrini <span dir="ltr"><<a href="mailto:nginx-forum@forum.nginx.org" target="_blank">nginx-forum@forum.nginx.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have this server block in a EC2 nginx webserver.<br>
<br>
<br>
<br>
                                server {<br>
                                    listen 80 default_server;<br>
                                    root /home/a/all;<br>
                                    index index.html;<br>
<br>
                                    location / {<br>
                                        try_files $uri $uri/ =404;<br>
                                    }<br>
                                }<br>
<br>
<br>
In my idea all the sites that point to the server should show the same page:<br>
<br>
index.html located in root /home/a/all/index.html<br>
<br>
<br>
But I have an<br>
403 Forbidden<br>
nginx/1.4.6 (Ubuntu)<br>
<br>
:(<br>
<br>
<br>
Why?<br>
<br>
Thanks,<br>
<br>
Andrea<br>
<br>
Posted at Nginx Forum: <a href="https://forum.nginx.org/read.php?2,268466,268466#msg-268466" rel="noreferrer" target="_blank">https://forum.nginx.org/read.php?2,268466,268466#msg-268466</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br></div>