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