The moose likes Tomcat and the fly likes apache: serving .txt files, and user apps Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "apache: serving .txt files, and user apps" Watch "apache: serving .txt files, and user apps" New topic

apache: serving .txt files, and user apps

stephen eaton

Joined: Aug 30, 2004
Posts: 4
Howdy folks.

I maintain a web site on a corporate intranet which, among other things, serves files directly to users. A source of irritation to my users are .txt files. If a Windows user associates say, .log files with UltraEdit, then clicking a foo.log link in their browser launches UltraEdit. However, in the special case of .txt files, the browser, whether Mozilla or IE, always presents the content in its own browser.

I know that the browser is in control, but I have not gotten a clear answer as to whether there is some way I can tweak the web server configuration to tell a browser, "launch the local app for .txt files". I have edited the mime.types file, trying application/plain, application/text, text/html, and text/plain (associating each with .txt), to no avail.

Any suggestions are appreciated.
I agree. Here's the link:
subject: apache: serving .txt files, and user apps
It's not a secret anymore!