Re: nginx serving corrupt images

2023-02-23 Thread Saint Michael
Now my website downloads the text instead of delivering website/ https://1eye.us/ what did mess up? On Thu, Feb 23, 2023 at 11:26 PM Saint Michael wrote: > So what do you think causes my issue with the images? > I in fact removed any likes in location /{} and it seems stable. > which negs the

Re: nginx serving corrupt images

2023-02-23 Thread Saint Michael
So what do you think causes my issue with the images? I in fact removed any likes in location /{} and it seems stable. which negs the question, if I have 10 HTML files, which on will be served by default? nginx version: openresty/1.21.4.1 built by gcc 11.3.0 (Ubuntu 11.3.0-1ubuntu1~22.04) built wi

Re: nginx serving corrupt images

2023-02-23 Thread Maxim Dounin
Hello! On Thu, Feb 23, 2023 at 10:35:16PM -0500, Dan Swaney wrote: > Hi Maxim, > > Here is the version details from my full recompile of NGINX 64-bit on > Windows. My code base is 2 months old, but it reproduced Saint's issue. > > nginx version: nginx/1.23.3 > > built by cl 19.34.31937 for x64

Re: nginx serving corrupt images

2023-02-23 Thread Dan Swaney
Hi Maxim, Here is the version details from my full recompile of NGINX 64-bit on Windows. My code base is 2 months old, but it reproduced Saint's issue. nginx version: nginx/1.23.3 > built by cl 19.34.31937 for x64 > *built with OpenSSL 3.1.0-beta1-dev* > TLS SNI support enabled > configure argum

Re: nginx serving corrupt images

2023-02-23 Thread Maxim Dounin
Hello! On Thu, Feb 23, 2023 at 09:42:29PM -0500, Dan Swaney wrote: > Ah-ah...I caught the NGINX failure in the SSL response: [...] > > 2023/02/23 21:24:49 [debug] 4768#4528: *1 malloc: 02DC83A8F350:16384 > > 2023/02/23 21:24:49 [debug] 4768#4528: *1 SSL buf copy: 626 > > 2023/02/23 21:24:49

Re: nginx serving corrupt images

2023-02-23 Thread Maxim Dounin
Hello! On Thu, Feb 23, 2023 at 06:32:11PM -0500, Saint Michael wrote: > if I do this, > root /static/duc/; > > location / { > > rewrite ^ /index.html break; > #try_files $uri $uri/ /index.html; > # try_files /index.html =404; > > } > and open https://x3x.us/ > the images cannot be seen

Re: nginx serving corrupt images

2023-02-23 Thread Saint Michael
there is no error log, all I get is 023/02/23 23:33:56 [notice] 168280#0: start worker process 168400 but my settings are error_log /var/log/nginx/error.log info; On Thu, Feb 23, 2023 at 6:32 PM Saint Michael wrote: > if I do this, > root /static/duc/; > > location / { > > rewrite ^

Re: nginx serving corrupt images

2023-02-23 Thread Saint Michael
if I do this, root /static/duc/; location / { rewrite ^ /index.html break; #try_files $uri $uri/ /index.html; # try_files /index.html =404; } and open https://x3x.us/ the images cannot be seen, it does not work. Kindly test, So, is there a way to specify the document for a location, if t

Re: nginx serving corrupt images

2023-02-23 Thread Dan Swaney
I don't see the rest of your nginx.conf. Also, the link you posted is to a logon page with no image URLs. On Wed, Feb 22, 2023 at 10:57 AM Saint Michael wrote: > I have a location > > root /static/duc/Digital_Universal_Currency; > # ... other directives ... > location / { > > try_f

Re: nginx serving corrupt images

2023-02-23 Thread Dan Swaney
I just ran your test and it works fine from Chrome and in Visual Studio Code: > wget https://x3x.us/index_files/image001.jpg > StatusCode: 200 > StatusCode: 200 > StatusDescription : OK > Content : {255, 216, 255, 224...} > RawContent: HTTP/1.1 200 OK >

Re: nginx serving corrupt images

2023-02-23 Thread Maxim Dounin
Hello! On Thu, Feb 23, 2023 at 08:13:54AM -0500, Saint Michael wrote: > Suppose that my default html file forn a location is xyz.html, but there > are hundreds. What is the canonical way to specify that and only that file > for a / {}. Locations are for a given URI prefix, not for a particular f

Re: nginx serving corrupt images

2023-02-23 Thread Saint Michael
Suppose that my default html file forn a location is xyz.html, but there are hundreds. What is the canonical way to specify that and only that file for a / {}. On Thu, Feb 23, 2023, 8:03 AM Maxim Dounin wrote: > Hello! > > On Thu, Feb 23, 2023 at 01:32:06PM +0200, Reinis Rozitis wrote: > > > >

Re: nginx serving corrupt images

2023-02-23 Thread Maxim Dounin
Hello! On Thu, Feb 23, 2023 at 01:32:06PM +0200, Reinis Rozitis wrote: > > 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? > > There is generally no need to specify location

RE: nginx serving corrupt images

2023-02-23 Thread Reinis Rozitis
> 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? There is generally no need to specify location / { .. } if you don't provide any specific configuration or behavior for it. Having

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

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

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