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.