The problem of not opening HTML page after configuring Nginx

Source: Internet
Author: User
Tags html page

Today Nginx, do not know how many times, never appeared this problem, described below

After the browser opens the HTML type file, it is played as an audio file, but opening the HTM file is ok.

Very depressed, looking for a lot of information, also did not find a solution, and finally solve their own.

Workaround:

Nginx configuration, there is a problem with the configuration file type

Types { 
        text/html    htm; 
    Audio/mpeg   MP3 M4A AAC wma; 
       Default_type Audio/mpeg;

There is no mime.type, no HTML file type specified, and the default file type is designated as the Audio/mpeg file, so it is not open. Add the HTML to the solution.

This article comes from "Acridine a Pooh" blog, please be sure to keep this source http://gm100861.blog.51cto.com/1930562/927316

More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/Servers/web/

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.