Apache Normal Access MHT type file configuration method _linux

Source: Internet
Author: User
Tags rfc822

Introduction of MHT Documents

The MHTML file is also called an aggregation HTML document, Web archive, or a single file Web page. A single File Web page saves all elements of a Web site, including text and graphics, to a single file. This encapsulation allows you to publish an entire Web site as a single set of standard inline MIME (MIME: Multimedia resources are delivered over an Internet connection). A MIME type notifies an aggregated HTML document (MHTML) file of content (such as graphics, sounds, or video) contained by a program object, or sends an entire Web site as an e-mail message or attachment. Internet Explorer version 4.0 and later supports this format.

Two, Apache support MHT file solution

Problem reason: The ppt file saved as a single page mht type file, directly using IE to open the type of file is no problem. After you put it on the server (Apache), you embed the file with an IFRAME, and the browser does not display correctly.

Because Apache does not support the MHT file format by default, we need to add it manually.

Open the Conf/mime.types file under the Apache installation directory and find this line

Copy Code code as follows:

message/rfc822 eml MIME

Add MHT at the back
Copy Code code as follows:

message/rfc822 eml MIME MHT

Perhaps Apache version is not the same, the content behind the message/rfc822 is different, as long as the original based on the addition of MHT can be.

After you save the file and restart Apache, it's normal to access the MHT file.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.