The Windows system uses cpolar intranet penetration to build the Zblog blog website and achieve public network access to the intranet!

1 Introduction

If you want to become a qualified technical geek or programmer, building your own website and making web pages is an unavoidable project. Based on the author's own experience, I have been stuck on self-made web sites for a long time. However, with the development of computer technology, many tools and software have emerged that are convenient and quick to build websites. Today, the author will show you how to quickly get started with Z-blog, build your own personal blog website, and publish this personal blog software to the public Internet through the intranet penetration data tunnel established by cpolar.

2. Z-blog website construction

Z-blog is an open source program based on Asp and PHP platforms. Its functions are similar to WordPress. It also supports a variety of templates and plug-ins, and can also support dual databases. If the user knows a little more about HTML+CSS+JS, it can be easily to create your own template. Of course, these are not our topics today. What we want to do today is to show you how to use cpolar to publish the Z-blog website to the public Internet.

2.1 XAMPP environment settings

Like other website construction tools, to install Z-blog locally, you also need to build the necessary website operating environment. Here we use XAMPP to build the website operating environment. We can find the version of the corresponding operating system on the official website of XAMPP (www.apachefriends.org).

20230324091901

The author is installing Z-blog on a Windows operating system, so I choose the Windows version of XAMPP.

20230324091902

After the installation program is downloaded, just double-click to start the installation.

20230324091903

After the installation is complete, we open the main program of XAMPP, open Apacheand MySQL.

20230324091904

2.2 Z-blog installation

After opening the running environment required by Z-blog, we go to the official website of Z-blog ( https://www.zblogcn.com/ ) to download the Z-blog installation package.

20230324091905

Then unzip the installation package and paste all the files into the htdocs folder in the xampp installation directory.

20230324091906

20230324091907

It should be noted that there are usually some xampp web page display files in the htdocs folder. These files must be deleted to correctly display the Z-blog installation page.

2.3 Z-blog web page test

Since Z-blog is a web page program, we open the browser and enter the XAMPP web page output port of the local address in the address bar, which is the output port of Apache (usually the output port number of Apache is 80, but since the author's port 80 has been is occupied, so change the apache output port to 82).

20230324091908

As long as the previous settings are correct, you can see the installation interface of the Z-blog web page. First, check the same protocol box at the bottom of the page and click next to 下一步enter the web page installation environment check.

20230324091909

Only when all self-tests are passed can the web installation program continue.

20230324091910

The next step is to set up the database, website administrator and other information. After the settings are completed, you can click "Next" on the lower right to complete the installation of the Z-blog website.

20230324091911

2.4 Cpolar installation and registration

After completing the Z-blog website construction, you can install [cpolar intranet penetration] ( cpolar - a secure intranet penetration tool ). The installation and registration of cpolar is also very simple. You can directly go to cpolar’s ​​official website page ( https://www .cpolar.com/ ) to find 下载the button.

20230324091912

The author built the Z-blog website on the Windows platform, so I chose the Windows version to download.

20230324091913

After the Cpolar download is completed, unzip the downloaded file and double-click the unzipped .msifile to automatically execute the installation program. Then it only takes one step Nextto complete the installation.

20230324091914

20230324091915

cpolar will create an independent data tunnel for each user, supplemented by user password and token code to ensure the data security of each user. Therefore, we need to register the user before using cpolar. The registration process is very simple. Just click on the upper right corner of the cpolar homepage 用户注册and fill in the necessary information on the registration page to complete the registration.

20230324091916

20230324091917

3. Local web page publishing

After completing the Z-blog website construction and the installation of cpolar intranet penetration software, we can use cpolar intranet penetration to establish an intranet penetration data tunnel and publish the Z-blog website on the local computer to on the public Internet. Since the Z-blog website will exist for a long time, the data tunnel of the free version of cpolar is reset every 24 hours. The author does not want to reset the Z-blog URL every day, so I upgraded cpolar to the VIP version to obtain an intranet penetration data tunnel that can exist stably for a long time.

3.1. Cpolar cloud settings

In order to establish a long-term stable data tunnel, we need to first have a stable public Internet address, and this Internet address must be connected to the output port of the local web page (software) to form a complete and stable data tunnel. Therefore, we need to click to enter cpolar's data tunnel reservation page first. A public Internet address is generated here (can also be regarded as the entrance of the data tunnel). Since this address is not connected to the local software output port at this time, it can also be regarded as a blank data tunnel.

20230324091918

On 预留the page, we can see that Cpolar supports data tunnels that retain many protocols. Here we select 保留二级子域名the field.

20230324091919

In the "Reserved second-level subdomain name" field, we need to enter a few simple information to set up the data tunnel reserved for cpolar. This information is:

  1. 地区: The area where the server is located, just select the nearest one
  2. 二级域名: Will eventually appear in the generated public Internet address as one of the identifiers of the network address
  3. 描述: Can be seen as a description of this data tunnel, as long as it can be distinguished from other tunnels

20230324091920

After completing these settings, you can click 保留the button on the right to retain this data tunnel.

20230324091921

Of course, if you no longer plan to use this data tunnel, you can click on the right to xdelete it easily to save valuable tunnel quota.

3.2 Cpolar local settings

After completing the settings of the cpolar cloud and retaining the blank data tunnel, we returned to the local cpolar client and connected the blank data tunnel generated by the cloud with the local Z-blog page.

Open and log in to the cpolar client locally (you can directly access it by typing in the browser localhost:9200, or click the shortcut of the cpolar client in the start menu), click the - 隧道管理button on the left side of the client's main interface 创建隧道to enter the local tunnel creation page (if To create a temporary data tunnel that does not reset the address within 24 hours, you can set it up directly here instead of setting up a blank data tunnel on the cpolar official website).

On this page, you also need to make several information settings, which include:

1.: 隧道名称It can be regarded as cpolar’s ​​local tunnel information annotation, as long as it is convenient for us to distinguish;
2. 协议– Since Alipay’s test page is a web page, the http protocol is selected;
3 本地地址.: The local address is the output port number of the local website, The output port of Z-blog is 80, so fill it in here 80;
4 域名类型.: Since we have reserved the data tunnel of the second-level subdomain name in the cpolar cloud, check it 二级子域名(if the reserved domain name is a custom domain name, check it Select a custom domain name), and Sub Domainfill in the reserved second-level subdomain name in the next line, which is "alipaytest" in this example. If you plan to create a temporary data tunnel, directly check "Random domain name" and let the cpolar client generate the network address by itself;
5 地区.: This field setting is the same as the cpolar cloud, both are server addresses. We choose the one closer to the actual place of use. Just the server;

20230324091922

After completing these settings, you can click 创建the button at the bottom of the page to connect the blank data tunnel in the cpolar cloud with the local payment test page, which provides us with a data tunnel that can access the local payment test page on the public Internet. We can manage this data tunnel on the 隧道管理- 隧道列表page, including opening, closing, or deleting this tunnel. We can also click the 编辑button to modify the information of this data tunnel.

20230324091923

4. Public network access test

In the last step, we click on 状态——the online tunnel list on the left to find the public Internet address of the Z-blog personal blog website. We can already access the local Z-blog personal blog page through this address, which has achieved the purpose of publishing the local Z-blog personal blog website to the public Internet.

20230324091924

20230324091925

5 Conclusion

As can be seen from the steps introduced above, if you want to quickly publish a website, it is necessary to choose some simple and handy auxiliary tools. Although the website built by Z-blog is very simple, it is a good example for us to familiarize ourselves with cpolar in publishing local websites. . If you want to build a large and complex website on your local computer, you can also use cpolar's intranet penetration function to test and release the website, thereby saving unnecessary resources and energy.

Reprinted from cpolar pole cloud article: [Zblog builds a blog website] Build your own blog in Windows environment and publish it online – Cpolar intranet penetration

Guess you like

Origin blog.csdn.net/qq_48652579/article/details/133311474