Sun WebServer 安装指南,Solaris for Intranets 版

mime_add

转换 mime_add 指令
  1. 假定在 /etc/http/httpd.conf 中有下列 Sun WebServer 1.0 指令:


    url //widgets {
    	mime_add 				"image/jpeg"					"JPG"
    }
  2. 取消对 /var/http/server1/websites/widgets/conf/widgets.site.conf 中的 mime_file 指令的注释:


    url //widgets {
    	mime_file				"conf/mime.types"
    }
  3. /var/http/server1/websites/widgets/conf/mime.types 文件添加新的 MIME 映像:


    image/jpeg					JPG