I have some log files i posted to my web-server. when i navigate to them, I get prompted to download and open with a text editor.

on other distributions like fedora, and M$, the log opens in the browser, and i read it there. How can i get this functionality in Ubuntu?

Example: http://nanocluster.umeche.maine.edu/e.log


Add the following line in your .htaccess

<IfModule mime_module>

AddType text/plain .(your folder extension) 


Restart apache and try .


  • I am still curios why fedora and other browsers worked. – j0h Feb 24 '14 at 21:00
  • am happy it waorks for you my friends cheers :) – nux Feb 24 '14 at 21:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.