Welcome! Log In Create A New Profile

Advanced

Files treated differently. Why?

Posted by Evert 
Files treated differently. Why?
January 06, 2016 06:59AM
file 1: https://textfiles.meulie.net/survival/tenherbs.txt
file 2: https://textfiles.meulie.net/survival/1hrrads.txt

When trying to open file 1 in a browser, I get prompted to download it. When trying to open file 2, it displays in the browser.

I've checked both with Redbot, and can't see any difference:
file 1: https://redbot.org/?uri=https%3A%2F%2Ftextfiles.meulie.net%2Fsurvival%2Ftenherbs.txt
file 2: https://redbot.org/?uri=https%3A%2F%2Ftextfiles.meulie.net%2Fsurvival%2F1hrrads.txt

No special config in the site-config either. What can explain this difference in treatment?

Regards,
Evert
Re: Files treated differently. Why?
January 06, 2016 07:37AM
Enable debug and see what nginx is selecting as context type which should also tell why.

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: Files treated differently. Why?
January 06, 2016 08:58AM
Thank you for your swift reply.

Redbot says content-type for both URL's is: 'Content-Type: text/plain; charset=UTF-8'. Will nginx in debug mode reveal me more/different info? If so, I'll try it later today :)

regards,
Evert
Re: Files treated differently. Why?
January 06, 2016 10:36AM
Debug mode will show everything, just do a simple Curl test to keep the logfile small.

---
nginx for Windows http://nginx-win.ecsds.eu/
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 163
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready