Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to set up a virtual domain name so that other users in the intranet can also access it through the virtual domain name

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report