I explained the second-level domain name under the IP address, when the second-level domain name does not allow him to access the address of the main site

Source: Internet
Author: User
I explained the second-level domain name on the IP address. when the second-level domain name does not allow him to access the address book of the main site, the second-level domain name is edited by liaohongchu from 2012-11-2116:42:50; tm.xinqq163.com & nbsp; this is also explained on the IP address & nbsp; tm. I interpret the second-level domain name on the IP address. when the second-level domain name does not allow him to access the address of the main site

This post was last edited by liaohongchu at 16:42:50, January 21 ,.

For example, the main site www.xinqq163.com/index.html

I made a second-level domain name tm.xinqq163.com and explained it to the IP address.

In this case, tm.xinqq163.com/index.html can also be accessed, which is not good for indexing. how can I restrict access by him?

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

Can I limit the number of nginx servers?




------ Solution --------------------
Your Domain names are separated by server {}.
------ Solution --------------------
Why does tm.xinqq163.com point to the same IP address? are there two websites ?? If yes, the same content will not be accessed. if not, you can directly redirect tm.xinqq163.com to 301.

Related Article

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.