Mht type apache configuration normal access files

This article describes how to configure mht type apache normal access files, need friends can refer to the following

A, mht file Profile

MHTML file, also known as polymerization HTML documents, Web page files or a single file. Single file Web page saves all the elements of the site (including text and graphics) are saved to a single file. This package can make your entire site will be released as a single inline MIME (MIME: connect a standard .MIME content type object passed notification procedures contained multimedia resources on the Internet (such as graphics, sound or video) aggregate HTML document ( MHTML) file or send an entire Web site .Internet Explorer 4.0 and later support this format as an e-mail or attachments.

Two, apache support solutions mht file

Cause of the problem: the ppt file as a single Web page mht file type, ie directly open this type of file is no problem. After put on the server (apache), using iframehttp: //www.bbqmw.net/qm_bbqmbd/ baby naming book embedded in the file, the browser can not display properly.

Because apache default file format is not supported mht, we need to manually add it.

Open conf / mime.types file in the apache installation directory, find the line
copy the code code is as follows:
the Message / rfc822 MIME EML
added mht later
copy the code code is as follows:
the Message / rfc822 mht MIME EML
may apache version is not the same, message / rfc822 behind the content is different, as long as the basis of the original plus mht on it.

Save the file, restart apache, access mht file to normal.

Guess you like

Origin www.cnblogs.com/murongyuling/p/11022298.html