deufrai wrote:

hi there.

I'm serving a few java utilities with an apache 2.2.3 server.
I provide .jar files along with the sources.

Tried with lots of web browsers, but I cannot simply view the sources as
text inside web browsers. I'm always asked to download the file or pick an
app to open it.

Server is hosted on a debian etch stable distro and /etc/mime.types shows a
line saying :
text/x-java                                     java

Mime module is also enabled.

What did I miss ?

Thanx in advance
---------------- End original message. ---------------------

The browser is using the mime type to determine what to do with the file. It sees text/x-java and does not know what to do with that type.

Set the mime type of the source files to text/plain, that will display the source files as text.

Dragon

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Venimus, Saltavimus, Bibimus (et naribus canium capti sumus)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to