About the local level two directory problem, thank you for help

Source: Internet
Author: User
My Site cuangs.com
Second-level catalogue Dongzuopian.cuangs.com
But now it's not level two, I want to change.
The local access now is localhost/cuangs/
How can I get a similar visit in the local level two????
I've been grappling with this problem for a long time, and I haven't figured out a clue.


Reply to discussion (solution)

Please describe your question accurately first.

Please describe your question accurately first.


For example
Web.com corresponds to local localhost/web/
A.web.com local should be how to correspond??

These two domains are not necessarily linked, essentially two completely separate domain names. Each domain name can be bound to its own site, and this site's root directory, feel free to set you up.

These two domains are not necessarily linked, essentially two completely separate domain names. Each domain name can be bound to its own site, and this site's root directory, feel free to set you up.


I mean, on the server can access a.web.com this level two, but I am in the local, that is, the local level two, how to access?? Or is it not possible at all, is it my fantasy?

What do you mean, local level two? I don't know what you're talking about.

Set the host file, ping a.web.com IP for this domain name
Host configuration: Domain name IP local access domain name

Zchi

Www.baidu.com first-level domain name
teiba.baidu.com Level Two domain name

1. The address of the domain name needs to be set in Apache
Such as:

ServerName movie.xx.com
DocumentRoot "G:\AppServ\www\xx"


ServerName ent.xx.com
DocumentRoot "G:\AppServ\www\xx"

2. The local Hosts file needs to be set
Such as:
127.0.0.1 movie.xx.com
127.0.0.1 ent.xx.com

Www.baidu.com first-level domain name
teiba.baidu.com Level Two domain name

1. The address of the domain name needs to be set in Apache
Such as:

ServerName movie.xx.com
DocumentRoot "G:\AppServ\www\xx"


ServerName ent.xx.com
DocumentRoot "G:\AppServ\www\xx"

2. The local Hosts file needs to be set
Such as:
127.0.0.1 movie.xx.com
127.0.0.1 ent.xx.com


Positive solution. But
Www.baidu.com first-level domain name
teiba.baidu.com level Two domain name is a level two domain name bar.
Just www.baidu.com points to the first-level domain name baidu.com.

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