I explained the level two domain name under the IP, when the level two domain name did not let him visit the main station address

Source: Internet
Author: User
I explained the level two domain name on the IP, when the level two domain name did not let him visit the main station address
This post was last edited by Liaohongchu on 2012-11-21 16:42:50

Like the main station www.xinqq163.com/index.html.

I made a level two domain name tm.xinqq163.com also explained on the IP

In this case tm.xinqq163.com/index.html can also access, so the collection is not good, how to limit not let him visit it

Nginx Pseudo-Static
Location/{
Rewrite ^ (. *)/item/([0-9]+) \.html$/plus/list.php?tid=$2&relationtid=$2 last;
}

Can I limit the Nginx server?




------Solution--------------------
Your different domains are separated by server{}.
------Solution--------------------
Tm.xinqq163.com Why to point to the same IP, is two sites?? If yes, will not access the same content, if not, tm.xinqq163.com Direct 301 redirect on it can be

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