Displaying Text File In Apache - TechRepublic
General discussion
February 26, 2003 at 04:01 PM
slyip

Displaying Text File In Apache

by slyip . Updated 23 years ago

I have a text file (with extension .txt) that contains HTML source codes. Whenever i click a link to my text file, instead of getting the contents of the file, the HTML codes are executed. How can I prevent this from happening ? I suspect this has something to do with mime_magic configuration in my Apache Server, but I am not sure exactly where to change it.

This discussion is locked

All Comments