Context -> MIME Type setting does not work as described in documentation

Discussion in 'Install/Configuration' started by andreas, Aug 4, 2006.

  1. andreas

    andreas New Member

    1. When I enter the example from the documentation

    image/jpg jpeg jpg, image/gif gif

    in the "Mime Type" field of a static context, I get the strange error message

    *invalid format - image/jpg, syntax is MIME_type suffix suffix, next MIME_type... MIME type is like text/html, followed by one or more suffix types separated by space. Use comma to separate different MIME types. invalid format - jpeg, syntax is MIME_type suffix suffix, next MIME_type... MIME type is like text/html, followed by one or more suffix types separated by space. Use comma to separate different MIME types. invalid format - jpg, syntax is MIME_type suffix suffix, next MIME_type... MIME type is like text/html, followed by one or more suffix types separated by space. Use comma to separate different MIME types. invalid format - image/gif, syntax is MIME_type suffix suffix, next MIME_type... MIME type is like text/html, followed by one or more suffix types separated by space. Use comma to separate different MIME types. invalid format - gif, syntax is MIME_type suffix suffix, next MIME_type... MIME type is like text/html, followed by one or more suffix types separated by space. Use comma to separate different MIME types.

    2. When I enter the mime type "application/atom+xml" in the "Force MIME Type" field, I get this warning message after restart:
    can't set 'Forced Type', undefined MIME Type application/atom+xml
  2. mistwang

    mistwang LiteSpeed Staff

    The first one might be MIME type syntax validation problem in admin interface. Will check.

    The second one is beause "application/atom+xml" must be defined as a MIME type first.
  3. andreas

    andreas New Member

    How do I define it as a mime type?

    Btw, it works as expected when I use the field "default MIME type" instead of "force mime type".

    Another problem: the "compressible types" field doesn't accept "application/atom+xml", probably because of the "+".
  4. mistwang

    mistwang LiteSpeed Staff

    Just add it to "MIME Type" or change the global MIME definition file.

    The "+" in MIME type problem will be fixed soon, it is the admin interface, you can add that in httpd_config.xml manually in the mean time.

Share This Page