Nginx service optimization hidden version number

Configure Nginx hidden version number In the production environment, the version number of Nginx needs to be hidden to avoid the leakage of security vulnerabilities View method Use fiddler tool to view Nginx version number in Windows client Use "curl-i web address" command to view in CentOS system The method of hiding version num ...

Posted by mrodrigues on Fri, 15 Nov 2019 11:51:53 -0800

Native PHP implements wechat authorization and obtains user information

The WeChat public number authorized to obtain user information is divided into three parts: 1: users agree to authorize and obtain code Jump to wechat authorization page and get the code value returned by authorization https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope= ...

Posted by jason.carter on Thu, 14 Nov 2019 06:38:25 -0800

Wechat applet + php authorized login, complete code

First map          Implementation process: 1. The authorized login button and the body information are placed on the same page. The login button is displayed when the user is not authorized, the login button is hidden when the user is authorized, and the body information is displayed. Of course, the authorization and the body can be separat ...

Posted by Dixen on Tue, 12 Nov 2019 23:52:35 -0800

View layer of Sails foundation -- i18n

The View layer of Sails provides the solution of i18n. Please refer to https://sailsjs.com/documentation/concepts/internationalization/locales We can achieve an international case in Chinese / English: Create Chinese support: config/locales/zh.json: { "Welcome": "Welcome" } Modify config/i18n.js to add support for ...

Posted by asa_carter on Sat, 09 Nov 2019 06:53:35 -0800

How to manage the network with Linux command line efficiently?

Preface In our daily work, the Linux server operating system that we often use, whether it is to view the information of network devices, manage network interfaces, download files, debug network problems or view network statistics, can be completed by commands under the terminal. ifconfig / ip a The command ifconfig is similar to ip a, which is ...

Posted by jazz_snob on Sun, 03 Nov 2019 01:49:02 -0700

The cause of curl extension error in PHP compilation

For a while, I wanted to install through the source code, and then expand the installation one by one. Many of them are installed smoothly, but curl seems to report an error. In file included from /usr/local/php7.3/include/php/main/php.h:468:0, from /home/download/php-7.3.7/ext/curl/interface.c:25: /home/download/php-7.3.7/e ...

Posted by Roja on Sun, 03 Nov 2019 01:05:43 -0700

[CentOS 7LNMP architecture 30], set nginx agent#

shallow A kind of ove nginx agent The user sends information to the proxy server, the web server receives the information from the proxy server, returns it to the proxy server, and finally sends it to the user The online environment needs to resolve the domain name of the website to the proxy server, so that the user's request goes to the p ...

Posted by wilzy1 on Fri, 01 Nov 2019 01:25:04 -0700

Modify the prefix of ApiBoot Logging log collection

ApiBoot Logging supports specifying the prefix of a single or multiple paths for collection, that is, we can specify a single or multiple paths under / user / * * or / order / *, and other paths that do not conform to Ant expressions will be ignored. Create sample project Use idea to create a spring boot project. Add ApiBoot Logging dependency ...

Posted by brokenshadows on Mon, 28 Oct 2019 10:26:50 -0700

3. Docker learning, theoretical knowledge, the third day -- DockerFile

Docker learning I. DockerFile analysis 1. What is DockerFile DockerFile is a build file used to build Docker image. It is a script composed of a series of commands and parameters. Three steps to build: 1. Manually write a DockerFile file 2. docker build to obtain a customized image 3,docker run 2. Analysis of the construction process of Doc ...

Posted by hchsk on Thu, 24 Oct 2019 02:31:41 -0700

Customize the ApiBoot Logging link and cell ID generation strategy

ApiBoot Logging will create a link number (TraceID) and a cell number (SpanID) for each request, which are used to classify each request log. The Parent SpanID of the log unit under a link can be used to sort out the relationship between the superior and the subordinate. Previous review Use ApiBoot Logging for unified management of request lo ...

Posted by spectacell on Mon, 21 Oct 2019 20:54:20 -0700