Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a plain/text file

"getNodeId"

I want to display its contents on web browser, so I use

mimetype.assign = ("" => "text/plain",
                   "text" => "text/plain",
                   ".jnlp" => "application/x-java-jnlp-file")

when I enter http://10.78.161.79/getnodeId in my browser, the text is displayed in my browser.

The problem is when I enter **http://10.78.161.79/index.jnlp** in my browser, it displays its content in browser, but here I want to run this file in browser. Now it displays every file in the browser.

I want that the browser should run index.jnlp. instead of displaying its contents. I cannot change getNodeId to getNodeId.text.

How can I tell in lighttpd.conf to download a files or to display its content in browser?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.