httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dragon <dra...@crimson-dragon.com>
Subject Re: [users@httpd] [CONFIG] make httpd serve .java files as text
Date Thu, 19 Apr 2007 15:54:07 GMT
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message