Xiaomi Router Mini to build a personal static website method

Source: Internet
Author: User

Xiaomi Routing and Xiaomi Route mini in essence, the gap is on the 1T hard disk, the other is not significantly different, but the function is much worse, such as: Millet routing has its own lamp mode, and Xiaomi Route Mini does not, in other words, this function is castrated, Careful study on the millet routing mini has been castrated function more than this, if you are confident enough, I believe that the Xiaomi routing Mini can achieve some of the features of millet routing. A few days ago started a mini (699 mi route for a router price is indeed a bit expensive), own a 500G hard disk, below and everyone to share the mini on the building site, FTP.

  1. First, the router will be able to turn on SSH permissions, otherwise it cannot continue

  2. We go through SSH remote into Xiaomi router mini

  3. Then vi/etc/sysapihttpd/sysapihttpd.conf

  4. Join in the penultimate line

    server {

    Listen 43999;

    server_name _;

    Access_log off;

    Location/{

    root/extdisks/sda1;

    Index index.html index.htm;

    }

    Error_page 404/404.html;

    Error_page 502 503 504/50x.html;

    Location =/50x.html {

    root HTML;

    }

    }

  5. For example, the red circle out of the paragraph I added myself.   root/extdisks/sda1; After this line is added is the path of the website, I was placed on the root of the USB flash drive, so it is/extdisks/sda1. To make changes according to your own situation.

  6. Then restart the web, load the new configuration

    Finally in the browser inside the test open, you can see their new website.

    After it is set up, you also need to modify the firewall to access the external network. Also note that the family network upload broadband is relatively small, if the building of a lot of site content, will lead to open more slowly outside, which will also affect their local network.

Xiaomi Router Mini to build a personal static website method

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.