basic question about
Zeal Vora
zeal at freecharge.com
Thu Jul 28 07:42:48 UTC 2016
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 <nginx-forum at forum.nginx.org> 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
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20160728/c5e10e74/attachment.html>
More information about the nginx
mailing list