This is a question getting asked more and more frequently here, so I made a guide.
For Apache Webservers - The Easy Way.
By default, the apache webserver does not understand what files with .jad and .cod are. This means that by uploading them to an Apache server, when the link in clicked it will either give you plain text of the contents, or an error message. This section will give you the simple steps to make it recognize, and know what to do with, your files.
1. Create a new text document, in Notepad for example.
2. Copy these 2 lines of code, exactly, into the new text doc:
Code:
AddType text/vnd.sun.j2me.app-descriptor .jad
AddType application/vnd.rim.cod .cod
3. Save As. Make sure you change the Save As Type to
ALL FILES. Make the file name
Make sure it has the . as the first character.
4. Upload this file to the directory where your OTA files are or will be stored.
Please Note: If this method does not work, your Apache server may not set set to allow directory based overrides.
You can also set this up in your web serverxxx8217;s main configuration file. In most cases (if you are on a shared hosting plan for example) you do not have access to this file. In case you have access and want to change the mime type setting for your server globally you need to change the main configuration file (mostly called apache2.conf or httpd.conf).