Method 1.
- Log into the Linux server via SSH.
- Open the “/etc/mime.types” file using a text editor.
- Add the new mime type into the end of the “/etc/mime.types” file and save it.
- Restart Apache by typing either of the following commands;
“service httpd restart”
“/etc/init.d/httpd restart”
Method 2.
- Loging the Linux server via SSH.
- Navigate to the account that you wish to add the mime type. You will need to be in the web accessible portion of the account.
- Either create or modify the existing “.htaccess” file and add the mime type entry and save the file.
- Restart Apache by typing either of the following commands;
“service httpd restart”
“/etc/init.d/httpd restart”
No comments:
Post a Comment