Re: FAQ Suggestions

2023-02-19 Thread nanaya
Hi, On Mon, Feb 20, 2023, at 10:51, Ivo Welch wrote: > please ignore previous email. nanaya has an explanation that I need > to explore. I think this would make a great example for an FAQ... > As explained by Francis, I forgot to mention the part that "root /tmp/w" in a "location /wth" means a

Re: Private location does not work

2023-02-19 Thread Saint Michael
Thanks for your patience. I publish a report, which takes 1 minute to complete. So I send the users to a spinner, which has an Iframe inside. While the spinner spins, the iframe runs the report from the /internal location. Once the report is ready, the spinner hides the div and replaces the interna

Re: Private location does not work

2023-02-19 Thread Payam Chychi
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

Re: Private location does not work

2023-02-19 Thread Saint Michael
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 wrote: > Yes it does, but you are not providing enough on what you are doing, only > what you want to do. >

Re: Private location does not work

2023-02-19 Thread Payam Chychi
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 wrote: > I also tried > > deny 192.168.1.1; > allow 192.168.1.0/24; > allow 10.1

Re: Private location does not work

2023-02-19 Thread Saint Michael
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 Chy

Re: Private location does not work

2023-02-19 Thread Payam Chychi
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/doc

Re: FAQ Suggestions

2023-02-19 Thread Ivo Welch
please ignore previous email. nanaya has an explanation that I need to explore. I think this would make a great example for an FAQ... On Sat, Feb 18, 2023 at 10:27 PM nanaya wrote: > > Hi > > On Sun, Feb 19, 2023, at 10:27, Ivo Welch wrote: > > 2. why does > > > > ``` > > location /wth { > >

Re: FAQ Suggestions

2023-02-19 Thread Ivo Welch
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 :-( . On Sun, Feb 19, 2023 at 5:37 AM Francis Daly

Re: Private location does not work

2023-02-19 Thread Saint Michael
Dear Francis it does not work: 404 Not Found this is my code location /asr { 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 Your browse

Re: FAQ Suggestions

2023-02-19 Thread Francis Daly
On Sat, Feb 18, 2023 at 05:27:45PM -0800, Ivo Welch wrote: Hi there, > 1. is this mailing list the correct place to suggest additions to the FAQ? It's as good a place as any, yes. > 2. why does > > ``` > location /wth { >root /var/www/fcgi-bin/; >index wth-root.html; > } > ``` > > no

Re: Private location does not work

2023-02-19 Thread Francis Daly
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 locati