Welcome! Log In Create A New Profile

Advanced

Re: FAQ Suggestions --- mapping to file, not folder?

All files from this thread

File Name File Size   Posted by Date  
image.png 46.7 KB open | download Dan Swaney 02/23/2023 Read message
image.png 46.7 KB open | download Saint Michael 02/23/2023 Read message
image.png 276 KB open | download Saint Michael 02/23/2023 Read message
image.png 109.2 KB open | download Saint Michael 02/23/2023 Read message
image.png 46.7 KB open | download Dan Swaney 02/23/2023 Read message
image.png 276 KB open | download Dan Swaney 02/23/2023 Read message
image.png 109.2 KB open | download Dan Swaney 02/23/2023 Read message
image.png 46.7 KB open | download Saint Michael 02/23/2023 Read message
image.png 276 KB open | download Saint Michael 02/23/2023 Read message
image.png 109.2 KB open | download Saint Michael 02/23/2023 Read message
image.png 46.7 KB open | download Dan Swaney 02/23/2023 Read message
image.png 276 KB open | download Dan Swaney 02/23/2023 Read message
image.png 109.2 KB open | download Dan Swaney 02/23/2023 Read message
image.png 188.7 KB open | download Dan Swaney 02/23/2023 Read message
image.png 46.7 KB open | download Saint Michael 02/23/2023 Read message
image.png 276 KB open | download Saint Michael 02/23/2023 Read message
image.png 109.2 KB open | download Saint Michael 02/23/2023 Read message
image.png 188.7 KB open | download Saint Michael 02/23/2023 Read message
image.png 46.7 KB open | download Dan Swaney 02/23/2023 Read message
image.png 276 KB open | download Dan Swaney 02/23/2023 Read message
image.png 109.2 KB open | download Dan Swaney 02/23/2023 Read message
image.png 188.7 KB open | download Dan Swaney 02/23/2023 Read message
February 22, 2023 12:46PM
I think my fundamental misunderstanding was that a `location` block in
the nginx configuration always maps to a directory (folder) in the
file system. The root just identifies the default file. (this also
means that the browser can then always look around for other files in
this directory, though they may be kept unreadable for security.)

I was trying to define one specific URL to map to one specific file in
the file system. Is this possible? That is, is there a way to map one
specific URL to one specific file?

/iaw

On Mon, Feb 20, 2023 at 4:08 AM Francis Daly <francis@daoine.org> wrote:
>
> On Sun, Feb 19, 2023 at 05:49:48PM -0800, Ivo Welch wrote:
>
> Hi there,
>
> > thank you, F. I created a completely new ubuntu VM, with a completely
> > vanilla configuration and only this one extra location statement at
> > http://164.67.176.22/ , describing the nginx configuration and
> > referencing its /wth, and it's not working :-( .
>
> For the convenience of future searchers, it would be better to include
> the content at that url in the mail directly.
>
> In this particular case, I suspect that the key line is
>
> > try /wth, which nginx should resolve to
> > /var/www/fcgi-bin/wth-root.html. However, this causes a 404 error.
>
> When you make the request to /wth and get the 404 response, what is
> written in the nginx error log? That will tell you what nginx thought
> that nginx was doing; if that does not match what you thought that nginx
> should be doing, that might point at the problem.
>
> I suspect that the issue is a misunderstanding of what "root" does --
> http://nginx.org/r/root. That content also includes a link to "alias",
> which might be what you want, depending on what you want to have happen.
>
> Good luck with it,
>
> f
> --
> Francis Daly francis@daoine.org
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> https://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

FAQ Suggestions

iaw4 February 18, 2023 08:30PM

Re: FAQ Suggestions

nanaya February 19, 2023 01:28AM

Private location does not work

Saint Michael February 19, 2023 01:54AM

Re: Private location does not work

Francis Daly February 19, 2023 08:20AM

Re: Private location does not work

Saint Michael February 19, 2023 09:36AM

Re: Private location does not work

unclepieman February 19, 2023 10:34PM

Re: Private location does not work

Saint Michael February 19, 2023 10:56PM

Re: Private location does not work

unclepieman February 19, 2023 11:00PM

Re: Private location does not work

Saint Michael February 19, 2023 11:26PM

Re: Private location does not work

unclepieman February 19, 2023 11:54PM

Re: Private location does not work

Saint Michael February 20, 2023 12:06AM

Re: Private location does not work

Francis Daly February 20, 2023 07:36AM

Re: Private location does not work

unclepieman February 20, 2023 01:22PM

Re: Private location does not work

Saint Michael February 20, 2023 02:46PM

foreach does not work

Saint Michael February 21, 2023 02:24AM

foreach does not work

Saint Michael February 21, 2023 02:26AM

Re: foreach does not work

Sergey A. Osokin February 21, 2023 10:30AM

nginx serving corrupt images

Saint Michael February 22, 2023 10:58AM

Re: nginx serving corrupt images

Saint Michael February 22, 2023 02:04PM

Re: nginx serving corrupt images

Saint Michael February 22, 2023 02:06PM

Re: nginx serving corrupt images

Sergey A. Osokin February 22, 2023 02:34PM

Re: nginx serving corrupt images

Saint Michael February 22, 2023 02:48PM

Re: nginx serving corrupt images

Maxim Dounin February 22, 2023 07:18PM

Re: nginx serving corrupt images

Saint Michael February 22, 2023 07:38PM

Re: nginx serving corrupt images

Maxim Dounin February 22, 2023 09:30PM

Re: nginx serving corrupt images

Saint Michael February 22, 2023 09:32PM

Re: nginx serving corrupt images

Maxim Dounin February 22, 2023 09:50PM

Re: nginx serving corrupt images

Saint Michael February 22, 2023 10:52PM

RE: nginx serving corrupt images

Reinis Rozitis February 23, 2023 06:34AM

Re: nginx serving corrupt images

Maxim Dounin February 23, 2023 08:04AM

Re: nginx serving corrupt images

Saint Michael February 23, 2023 08:16AM

Re: nginx serving corrupt images

Maxim Dounin February 23, 2023 09:18AM

Re: nginx serving corrupt images Attachments

Dan Swaney February 23, 2023 06:16PM

Re: nginx serving corrupt images Attachments

Saint Michael February 23, 2023 07:24PM

Re: nginx serving corrupt images Attachments

Dan Swaney February 23, 2023 08:12PM

Re: nginx serving corrupt images Attachments

Saint Michael February 23, 2023 09:28PM

Re: nginx serving corrupt images Attachments

Dan Swaney February 23, 2023 09:34PM

Re: nginx serving corrupt images

Maxim Dounin February 23, 2023 10:28PM

Re: nginx serving corrupt images

Dan Swaney February 23, 2023 10:36PM

Re: nginx serving corrupt images

Maxim Dounin February 23, 2023 11:14PM

Re: nginx serving corrupt images

Saint Michael February 23, 2023 11:28PM

Re: nginx serving corrupt images

Saint Michael February 23, 2023 11:48PM

Re: nginx serving corrupt images Attachments

Saint Michael February 23, 2023 10:32PM

Re: nginx serving corrupt images Attachments

Dan Swaney February 23, 2023 10:42PM

Re: nginx serving corrupt images

Dan Swaney February 23, 2023 06:24PM

Re: nginx serving corrupt images

Saint Michael February 23, 2023 06:34PM

Re: nginx serving corrupt images

Saint Michael February 23, 2023 06:36PM

Re: nginx serving corrupt images

Maxim Dounin February 23, 2023 09:44PM

Re: FAQ Suggestions

iaw4 February 19, 2023 08:52PM

Re: FAQ Suggestions

nanaya February 20, 2023 02:12AM

Re: FAQ Suggestions

Francis Daly February 19, 2023 08:38AM

Re: FAQ Suggestions

iaw4 February 19, 2023 08:52PM

Re: FAQ Suggestions

Francis Daly February 20, 2023 07:08AM

Re: FAQ Suggestions --- mapping to file, not folder?

iaw4 February 22, 2023 12:46PM

Re: FAQ Suggestions --- mapping to file, not folder?

Sergey A. Osokin February 22, 2023 01:06PM

Re: FAQ Suggestions --- mapping to file, not folder?

Francis Daly February 22, 2023 04:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 290
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