Sun WebServer 2.1 Installation Guide

mime_add

The mime_add directive is no longer supported in Sun WebServer 2.1. All mime types must be specified in the mime.types file at either the server or site level.

To convert the mime_add directive
  1. Given the following Sun WebServer 1.0 directive:


    server {
    	mime_add			"image/.jpeg"			"JPG"
    }
  2. Make sure a mime.types file is specified in /etc/http/server1.httpd.conf:


    Note -

    If this file is shared among all the servers, changes will effect all httpd daemons



    server {
    	mime_file 			"/etc/http/mime.types
    }
  3. Add the new MIME mappings to the /etc/http/mime.types file:


    image/jpeg 			JPG