Re: nginx serving corrupt images

2023-02-22 Thread Saint Michael
Question: if I don't have any like inside de location / {} how does nginx delivers an html file out of many possibly found in the root for the location? On Wed, Feb 22, 2023 at 9:48 PM Maxim Dounin wrote: > Hello! > > On Wed, Feb 22, 2023 at 09:31:43PM -0500, Saint Michael wrote: > > > how woul

Re: nginx serving corrupt images

2023-02-22 Thread Maxim Dounin
Hello! On Wed, Feb 22, 2023 at 09:31:43PM -0500, Saint Michael wrote: > how would this line look? > try_files $uri $uri/ /index.html; You have to remove this line completely (or comment it out by using the "#" character at the start of the line). > and how do set I the error log to the max lev

Re: nginx serving corrupt images

2023-02-22 Thread Saint Michael
how would this line look? try_files $uri $uri/ /index.html; and how do set I the error log to the max level for this particular server {}? I am not getting any errors in /var/log/nginx/error.log On Wed, Feb 22, 2023 at 9:28 PM Maxim Dounin wrote: > Hello! > > On Wed, Feb 22, 2023 at 07:35:54PM

Re: nginx serving corrupt images

2023-02-22 Thread Maxim Dounin
Hello! On Wed, Feb 22, 2023 at 07:35:54PM -0500, Saint Michael wrote: > a) The error does not have a single line. > b) restarting does not fix it > c) my nginx is no acting as proxy So it's certainly unrelated to the article about proxying and error propagation you've previously linked. > d) i

Re: nginx serving corrupt images

2023-02-22 Thread Saint Michael
a) The error does not have a single line. b) restarting does not fix it c) my nginx is no acting as proxy d) it happened twice and both times I fixed it by turning gzip off, restarting, and back on. e) I also noticed that I requested the image file with wget, get a full HTML file for the whole docu

Re: Log Of Attempted Files

2023-02-22 Thread Maxim Dounin
Hello! On Wed, Feb 22, 2023 at 02:39:36PM -0800, Ivo Welch wrote: > dear nginx experts --- If I use an alias in my location, then > $realpath shows in my log file what file was actually served up. > Great. There is no $realpath variable in nginx. The $request_filename variable identifies the fi

Re: nginx serving corrupt images

2023-02-22 Thread Maxim Dounin
Hello! On Wed, Feb 22, 2023 at 02:46:29PM -0500, Saint Michael wrote: > It's not a misconfiguration, is a huge bug. > A wasted two days of sleep for something that is 100% a bug. > Please read here: > https://laracasts.com/discuss/channels/general-discussion/homestead-nginx-serving-wrong-images-a

Log Of Attempted Files

2023-02-22 Thread Ivo Welch
dear nginx experts --- If I use an alias in my location, then $realpath shows in my log file what file was actually served up. Great. How can I show in the access log file what file(s) nginx tried? I do not want the full rewrite engine in the debug log --- it contains way too many things I do not

Re: Nginx mail proxy and TLS connection to the real mail server

2023-02-22 Thread Sergey A. Osokin
On Thu, Feb 23, 2023 at 12:03:15AM +0200, Christos Chatzaras wrote: > > > Short answer is no. The proxy_ssl_* family directives are available > > for ngx_http_proxy and ngx_stream_proxy modules only. > > Thank you for the reply. Finally I did it by combining the Nginx > mail proxy with multiple

Re: Nginx mail proxy and TLS connection to the real mail server

2023-02-22 Thread Christos Chatzaras
> Short answer is no. The proxy_ssl_* family directives are available > for ngx_http_proxy and ngx_stream_proxy modules only. > > -- > Sergey A. Osokin Thank you for the reply. Finally I did it by combining the Nginx mail proxy with multiple Stunnels. _

Re: Nginx mail proxy and TLS connection to the real mail server

2023-02-22 Thread Sergey A. Osokin
Hi Christos, On Wed, Feb 22, 2023 at 10:04:34PM +0200, Christos Chatzaras wrote: > > I setup a Nginx mail proxy and I would like mail clients to > connect to it without TLS and then the Nginx proxy to connect > to the real mail server using TLS. > > Is this possible? Short answer is no. The pr

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

2023-02-22 Thread Francis Daly
On Wed, Feb 22, 2023 at 09:44:42AM -0800, Ivo Welch wrote: Hi there, > I think my fundamental misunderstanding was that a `location` block in > the nginx configuration always maps to a directory (folder) in the > file system. Yes, that's a misunderstanding. The details at http://nginx.org/r/loc

Nginx mail proxy and TLS connection to the real mail server

2023-02-22 Thread Christos Chatzaras
Hello, I setup a Nginx mail proxy and I would like mail clients to connect to it without TLS and then the Nginx proxy to connect to the real mail server using TLS. Is this possible? Kind regards, Christos Chatzaras___ nginx mailing list nginx@nginx.o

Re: nginx serving corrupt images

2023-02-22 Thread Saint Michael
It's not a misconfiguration, is a huge bug. A wasted two days of sleep for something that is 100% a bug. Please read here: https://laracasts.com/discuss/channels/general-discussion/homestead-nginx-serving-wrong-images-and-only-cut-in-the-middle He mentions the same exact problem and also he points

Re: nginx serving corrupt images

2023-02-22 Thread Sergey A. Osokin
On Wed, Feb 22, 2023 at 02:05:21PM -0500, Saint Michael wrote: > I wonder if Nginx will ever fix this issue. It's a clear bug in the > product. I wasted two days of sleep on this issue. From your previous email you've reported you've found a solution, so that seems like not a bug and probably a mi

Re: nginx serving corrupt images

2023-02-22 Thread Saint Michael
I wonder if Nginx will ever fix this issue. It's a clear bug in the product. I wasted two days of sleep on this issue. On Wed, Feb 22, 2023 at 2:03 PM Saint Michael wrote: > I found the solution here > > https://laracasts.com/discuss/channels/general-discussion/homestead-nginx-serving-wrong-im

Re: nginx serving corrupt images

2023-02-22 Thread Saint Michael
I found the solution here https://laracasts.com/discuss/channels/general-discussion/homestead-nginx-serving-wrong-images-and-only-cut-in-the-middle On Wed, Feb 22, 2023 at 10:57 AM Saint Michael wrote: > I have a location > > root /static/duc/Digital_Universal_Currency; > # ... other directi

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

2023-02-22 Thread Sergey A. Osokin
Hi Ivo, On Wed, Feb 22, 2023 at 09:44:42AM -0800, Ivo Welch wrote: > 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 b

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

2023-02-22 Thread Ivo Welch
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

nginx serving corrupt images

2023-02-22 Thread Saint Michael
> > I have a location root /static/duc/Digital_Universal_Currency; # ... other directives ... location / { try_files /index.html =404; } you my see it directly https://securedigitalcheck.com The images don't work. No browser can see them. if I download them directly with wget, they d