Like Dot, Sina Blog so users submit their own level two domain name and automatic resolution is how to achieve it?

Source: Internet
Author: User
Want to use WordPress to achieve a lightweight blog function (non-WP mu), but the two-level domain name part does not know how to deal with, want to know like Dot, Sina Blog so users submit their own two-level domain name and automatic resolution is how to achieve?

Reply content:

Want to use WordPress to achieve a lightweight blog function (non-WP mu), but the two-level domain name part does not know how to deal with, want to know like Dot, Sina Blog so users submit their own two-level domain name and automatic resolution is how to achieve?

A record of domain name resolution:

    1. @--->justjavac.com
    2. www--->www.justjavac.com
    3. *--->*.justjavac.com

In the way 3 can be implemented, and then in the Web driven by PHP processing, no need for DNS-related programming.

See for a long while did not answer right, Proxy server (Nginx, Apache) forwarding can be, for example you are wang.sina.com directly into Www.sina.com/wang

泛域名解析

Pan-Resolution
*.yuming.com
You can judge this.

Method One

    • With pan domain name resolution, all subdomains under a top-level domain are pointed to an IP address and then distinguished by the virtual host of the HTTP server.

Method Two

    • Build a DNS server yourself, and then add an NS record to the top-level domain to point to the DNS server, so that all subdomains are given to their own established servers to parse.

The same upstairs, the general DNS resolution service providers (like Dnspod) support domain name Pan-resolution, you can add similar *.abc.com resolution

You can then determine which site to request on your server's HTTP service (such as Nginx) based on the domain name

or in your website program, through the host to determine which domain the user is visiting, and then show the different content

Generally through the pan domain name to resolve, and now many service providers are supported!

Pan-resolution + pseudo-static can be done

It seems that people are asking for automatic analysis, what do you answer?

I think I can do a pan-resolution, go to a specific URL, and then use the regular to take the user name, and then use htaccess to do the turn or rewrite

  • 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.