I have an apache2.4 server. On some page, I have a link to a log file. I would like to show the file content in a browser when the link is clicked, rather that serving the file do download.

1 Answer 1


You can try this in .htaccess or apache config.

     AddType text/plain .log

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .