Boyle Owen wrote: > >> -----Original Message----- >> From: deufrai [mailto:d3ufr4i@xxxxxxxx] >> Sent: Thursday, April 19, 2007 4:49 PM >> To: users@xxxxxxxxxxxxxxxx >> Subject: [CONFIG] make httpd serve .java files as text >> >> >> 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 > > You're on the right track - you need to set the mime-type appropriately. > Try text/plain for a start... > > However, be aware that certain browsers will ignore the mime-type and > under some circumstances the webserver may not use the value found in > mime.types. To see what's really going on, try with FireFox and the > LiveHTTPHeaders extension. > > Rgds, > Owen Boyle > Disclaimer: Any disclaimer attached to this message may be ignored. > >> >> Mime module is also enabled. >> >> What did I miss ? >> >> Thanx in advance >> >> an example : >> http://wardsback.dyndns.org/WButils/WButils-1.2/src/org/wardsb >> ack/utils/ >> view sources >> -- >> View this message in context: >> http://www.nabble.com/-CONFIG--make-httpd-serve-.java-files-as > -text-tf3607404.html#a10078651 >> Sent from the Apache HTTP Server - Users mailing list archive >> at Nabble.com. >> >> >> --------------------------------------------------------------------- >> 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@xxxxxxxxxxxxxxxx >> " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx >> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx >> > > > This message is for the named person's use only. It may contain > confidential, proprietary or legally privileged information. No > confidentiality or privilege is waived or lost by any mistransmission. If > you receive this message in error, please notify the sender urgently and > then immediately delete the message and any copies of it from your system. > Please also immediately destroy any hardcopies of the message. You must > not, directly or indirectly, use, disclose, distribute, print, or copy any > part of this message if you are not the intended recipient. The sender's > company reserves the right to monitor all e-mail communications through > their networks. Any views expressed in this message are those of the > individual sender, except where the message states otherwise and the > sender is authorised to state them to be the views of the sender's > company. > > --------------------------------------------------------------------- > 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@xxxxxxxxxxxxxxxx > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > > > All right, many thanx, made a backup of mime.types file and modified said line as "text/plain java" Works like a charm in fireFox 2, Opera 9 but .... "surprisingly not surprisingly" fails in IE7. No clue about how to get it done in IE7, though Thanx again for your quick reply. -- View this message in context: http://www.nabble.com/-CONFIG--make-httpd-serve-.java-files-as-text-tf3607404.html#a10080822 Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx