# This is a comment because it starts with a #. # # When peps needs to display a MIME type for a Ghostscript device, it looks # for it in a file specified by the -M switch first. If the switch was not # used, or the file does not exist, or the file does not list the MIME # type for that device, peps looks in ~/peps.mine, where ~ is a home # directory. Whose home directory? If the -u switch is used, it is the # home directory of the user specified by that switch. Otherwise, if # the PEPSMIME environment variable is set, it is the home directory of the # user specified by that variable. Otherwise it is the home directory of the # effective user running peps. If peps cannot find the MIME type in # ~/peps.mime, it tries to read /etc/peps.mime. If it does not find # the answer there, it looks at the hardcoded MIME types next. If it still # does not find it, peps assumes the MIME type is image/x-devicename. # # HINT: Chances are that if peps is asked for the MIME type, it is running # as a CGI script from within a web server, such as Apache. And the # web server is probably running as nobody or a similar fake user. # # Rather than having to specify your user name with the -u switch # in every CGI script (and possibly making a typing mistake), simply # set PEPSMIME in your .htaccess file. With Apache, you do it like this: # # SetEnv PEPSMIME user # # Remember, it is the user name you need to set PEPSMIME to, not the # path to the home directory. # gs device MIME bbox text/plain; charset=8859-1 bmp16 image/bmp bmp16m image/bmp bmp256 image/bmp bmp32b image/bmp bmpgray image/bmp bmpmono image/bmp cgm8 image/cgm cgm24 image/cgm cgmmono image/cgm epswrite application/postscript faxg3 image/g3fax jpeg image/jpeg jpeggray image/jpeg miff24 image/x-miff pbm image/x-portable-bitmap pbmraw image/x-portable-bitmap pcx16 image/x-pcx pcx24b image/x-pcx pcx256 image/x-pcx pcxcmyk image/x-pcx pcxgray image/x-pcx pcxmono image/x-pcx pdfwrite application/pdf pgm image/x-portable-graymap png16 image/png png16m image/png png256 image/png pngalpha image/png pnggray image/png pnm image/x-portable-anymap ppm image/x-portable-pixmap psgray application/postscript psmono application/postscript psrgb application/postscript pswrite application/postscript tiff12nc image/tiff tiff24nc image/tiff tiffcrle image/tiff tiffg3 image/tiff tiffg32d image/tiff tiffg4 image/tiff tifflzw image/tiff tiffpack image/tiff