nginx serving corrupt images
Saint Michael
venefax at gmail.com
Thu Feb 23 23:32:11 UTC 2023
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 there are
many documents in the same root?
It looks like a big bug or misdesign to me.
Please don't believe me, I can send you the data and you may test it in
your own box.
or I can go back and then you can pull the HTML and the two images with
curl
On Thu, Feb 23, 2023 at 6:22 PM Dan Swaney <justdan23 at gmail.com> wrote:
> 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 <venefax at gmail.com> wrote:
>
>> 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 download, same size, but in
>> Windows they do not open with paint or with Chrome, the error message says
>> that they are "format unknown".
>> but if I download the image via SCP, directly, there is nothing wrong
>> with them.
>> so what is ningx doing?
>>
>>
>>
>>
>>>
>>> _______________________________________________
>> nginx mailing list
>> nginx at nginx.org
>> https://mailman.nginx.org/mailman/listinfo/nginx
>>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> https://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20230223/264ea291/attachment.htm>
More information about the nginx
mailing list