How to set up a virtual domain name so that other users in the intranet can also access it through the virtual domain name
This article mainly introduces how to set up a virtual domain name so that other users of the intranet can also access it through the virtual domain name, which has a certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let's take a look at it.
Add the private network IP and domain name of the machine where the server is located in the hosts of other computers
Otherwise, look down:
The Amaine B computer is the same workgroup.
For example: the same dormitory, or the computer of a company, all surf the Internet through Wifi.
An on the computer, PHP environment is configured. Use upupw (similar to wamp).
Through the virtual domain name:
Tp.ccc visits the website under the computer's J:/project/tp/.
After setting up the virtual site. Tp.ccc can be opened.
At this point, find out
Apache2/conf/httpd-vhosts.conf
Move the content about tp.ccc to the top.
Restart, apache.
Then cmd, down, ipconfig
View:
IPv4 address: for example: 192.168.3.116
Then, go to computer B.
Input: 192.168.3.116
You can open the tp.ccc website of computer A.
Then, find:
C:/Windows/System32/driver/etc/hosts
Open, edit:
Add a line:
192.168.3.116 tp.ccc
(note that there is a space before tp)
This means to map tp.ccc to 192.168.3.116
Enter: tp.ccc can be opened.
This can also be used on mobile phones in the same intranet.
Mobile phone, is to enter the ip address directly.
Thank you for reading this article carefully. I hope the article "how to set up a virtual domain name so that other users of the intranet can also access it through the virtual domain name" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support it and pay attention to the industry information channel. More related knowledge is waiting for you to learn!