Hi Andrea, The 404 Forbidden error is because of the permission of that particular file / directory . NGINX process should be able to read that file in /home/a/all/index.html.
Cheers! Zeal On Tue, Jul 26, 2016 at 4:47 PM, ndrini <[email protected]> wrote: > I have this server block in a EC2 nginx webserver. > > > > server { > listen 80 default_server; > root /home/a/all; > index index.html; > > location / { > try_files $uri $uri/ =404; > } > } > > > In my idea all the sites that point to the server should show the same > page: > > index.html located in root /home/a/all/index.html > > > But I have an > 403 Forbidden > nginx/1.4.6 (Ubuntu) > > :( > > > Why? > > Thanks, > > Andrea > > Posted at Nginx Forum: > https://forum.nginx.org/read.php?2,268466,268466#msg-268466 > > _______________________________________________ > nginx mailing list > [email protected] > http://mailman.nginx.org/mailman/listinfo/nginx >
_______________________________________________ nginx mailing list [email protected] http://mailman.nginx.org/mailman/listinfo/nginx
