Welcome! Log In Create A New Profile

Advanced

Re: newbie location error give error 403

Sergey A. Osokin
March 08, 2022 08:48PM
Hi Jim,

On Tue, Mar 08, 2022 at 04:55:53PM -0700, Jim Taylor wrote:
> This is my server configuration.  I want to display a PDF file.  If I
> out the PDF in /data/images, it displays correctly in my browser
> (Firefoc).  If I put the PDF in /data/documents I get error 403.
> Obviously, I'm doing something stupid.  Is it really impossible to have
> both a documents and an images directory>

[...]
>
>         location /images/ {
>             root /data;
>         }
>         location /documents/ {
>             root /data;
>         }

Let's review the permissions on:

- those two directories, i.e. run
% ls -la /data/images
% ls -la /data/documents

- those two PDF files, i.e. run
% ls -la /data/images/thePDFfile.pdf
% ls -la /data/documents/thePDFfile.pdf

--
Sergey A. Osokin
_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-leave@nginx.org
Subject Author Posted

newbie location error give error 403

Jim Taylor March 08, 2022 07:00PM

Re: newbie location error give error 403

Sergey A. Osokin March 08, 2022 08:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 199
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready