Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

browser opens .ini file as video (media)

I’m running a TWiki-Web on Apache in our local network.
Whenever I try to download an attached .ini-File, the browser (I tried several) tries to open it as some kind of media starting a video-player.
I’m a bit stuck here. I want the browser to thread the file as text but I don’t know if this ist some configuration I have to do in my local browser, in the TWiki-System or at the webserver?
When I try to "Save link as…" opera will download the file correctly as .ini but Firefox wants to add a "mp3"-Extension instead of .ini

Anyone can help me with that?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Edit Apache Configurations

  1. run

sudo nano /etc/httpd/conf/httpd.conf

  1. then add

AddType text/plain .ini

  1. then close and save and restart your server

sudo service httpd restart

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading