Welcome! Log In Create A New Profile

Advanced

Re: Private location does not work

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 19, 2023 11:54PM
You need to be more clear on what you are trying to do so we can help you.
Draw a diagram or something with the details.

You can use authentication and use that to protect and use at the same time
but again, you have left out some critical details as to what you are tying
to accomplish.

Nginx is powerful, you can write rules to do almost anything, but first you
need to figure out what you want to do.



On Sun, Feb 19, 2023 at 8:24 PM Saint Michael <venefax@gmail.com> wrote:

> It uses the original IP of the user, not of the server.
> That's why the ALLOW..DENY does not work either.
> Nobody thought about this in Nginx.
>
>
> On Sun, Feb 19, 2023 at 11:00 PM Payam Chychi <pchychi@gmail.com> wrote:
>
>> Yes it does, but you are not providing enough on what you are doing, only
>> what you want to do.
>>
>> Run developer tools and see what your ip address is reported as.
>>
>> On Sun, Feb 19, 2023 at 7:54 PM Saint Michael <venefax@gmail.com> wrote:
>>
>>> I also tried
>>>
>>> deny 192.168.1.1;
>>> allow 192.168.1.0/24;
>>> allow 10.1.1.0/16;
>>> allow 2001:0db8::/32;
>>> deny all;
>>>
>>>
>>> and it does not work. It uses the remote IP of the caller.
>>>
>>>
>>> So Nginx does not have a way to do this.
>>>
>>> Thanks doe confirming it.
>>>
>>>
>>>
>>> On Sun, Feb 19, 2023 at 10:32 PM Payam Chychi <pchychi@gmail.com> wrote:
>>>
>>>> You need to learn two things:
>>>> 1- learn to read the page and understand what the expected result
>>>> should be
>>>> 2- google!
>>>>
>>>> Your problem has been well covered thousands of times before.
>>>>
>>>> Your 404 is expected error code when you are accessing the website from
>>>> external.
>>>>
>>>> Also, read
>>>> https://nginx.org/en/docs/http/ngx_http_access_module.html
>>>>
>>>>
>>>>
>>>>
>>>> On Sun, Feb 19, 2023 at 6:34 AM Saint Michael <venefax@gmail.com>
>>>> wrote:
>>>>
>>>>> Dear Francis
>>>>> it does not work:
>>>>> 404 Not Found
>>>>>
>>>>> this is my code
>>>>> location /asrxxxx {
>>>>> default_type 'text/html; charset=UTF-8';
>>>>> internal;
>>>>> ....
>>>>>
>>>>> }
>>>>>
>>>>> location /carrier_00163e1bb23c {
>>>>> default_type 'text/html; charset=UTF-8';
>>>>> ....
>>>>>
>>>>> }
>>>>>
>>>>> in the public location, /carrier_00163e1bb23c, I have
>>>>> </div>
>>>>> <iframe src="/asrxxxx">
>>>>> Your browser does not support iframes
>>>>> </iframe>
>>>>> </div>
>>>>>
>>>>> so how do I block the public from looking at my HTML and executing
>>>>> directly /asrxxxx?
>>>>> Is this a bug?
>>>>> many thanks for your help.
>>>>> Philip
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Sun, Feb 19, 2023 at 8:20 AM Francis Daly <francis@daoine.org>
>>>>> wrote:
>>>>>
>>>>>> On Sun, Feb 19, 2023 at 01:52:12AM -0500, Saint Michael wrote:
>>>>>>
>>>>>> Hi there,
>>>>>>
>>>>>> > it fails with forbidden. But I am using only from another location
>>>>>> inside
>>>>>> > the same server.
>>>>>> >
>>>>>> > How do I protect internal service locations and at the same time
>>>>>> use them?
>>>>>>
>>>>>> If you are asking "how do I ensure that a location{} can only be used
>>>>>> for
>>>>>> internal redirects/requests", then you want
>>>>>> http://nginx.org/r/internal
>>>>>>
>>>>>> Cheers,
>>>>>>
>>>>>> 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
>>>>>
>>>> --
>>>> Payam Tarverdyan Chychi
>>>> _______________________________________________
>>>> 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
>>>
>> --
>> Payam Tarverdyan Chychi
>> _______________________________________________
>> 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
>
--
Payam Tarverdyan Chychi
_______________________________________________
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: 267
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