squid cache server -- reverse proxy

squid cache server -- reverse proxyIf the resource of the request is cached in the Squid reverse proxy server, the resource of the request is directly returned to the client,Otherwise, the reverse proxy server will request resources from the WEB server in the background, and then return the requested response to the client,At the same time, th ...

Posted on Mon, 06 Apr 2020 11:07:52 -0400 by merebel

Detailed explanation of matching rules for Nginx location

​ The location of Nginx implements the segmentation of requests. Some URI s return static content, some are distributed to back-end servers, etc. today, we will thoroughly understand its matching rules An example of the simplest location is as follows server { server_name website.com; location /admin/ { # The configuration you place ...

Posted on Sat, 04 Apr 2020 22:28:11 -0400 by cornick

CGI of python web programming

CGI (general Gateway Interface), CGI is the specification of the external program when the Web server is running. The program written according to CGI can extend the function of the server. CGI application program can interact with browser, and can also communicate with external data sources such as database server through database API to obtai ...

Posted on Thu, 02 Apr 2020 20:29:38 -0400 by omelin

See Essentials Through Phenomena - Nginx Profile Details

Preface Previous articles describe the Nginx process model and some of the things that make Nginx support high concurrency based on asynchronous and non-blocking mechanisms.This article details the configuration file for Nginx (the main configuration file nginx.conf file) and the architecture of Nginx. Overview of Nginx configuration files Th ...

Posted on Wed, 01 Apr 2020 10:04:17 -0400 by EY

Knowledge point 032 expect distributes installation scripts and installation services

System environment: 4 servers System version: CentOS release 6.9 (Final) 10.0.0.62 m01 distributor 10.0.0.63 web server 10.0.0.64 nfs network transport shared server 10.0.0.65 backup server   1. Write a. exp script #!/usr/bin/expect if { $argc !=2 } { send_user "usage: expect fenfa_sshkey.exp file host\n" exit } #define var set file [li ...

Posted on Wed, 01 Apr 2020 02:49:17 -0400 by new2code

Install ios application with plist

Step one: When using MACBOOK to export ipa, we get ipa and a plist file When you see the plist we exported, you need to notice that two of them have been marked in Chinese. One is the URL, one is the bundle identifier <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://ww ...

Posted on Sun, 29 Mar 2020 14:12:12 -0400 by geebo

One time 502 error resolution process

At noon, I received the feedback, and 502 error was reported in the background. When I entered the server, I saw that the nginx and PHP FPM processes were in progress. Looking at the load, it is found that the CPU rises to 99% intermittently. It is found that the script of PHP artican is executing. Enter the / etc/cront file to delete the sched ...

Posted on Tue, 17 Mar 2020 11:57:37 -0400 by Nimbuz

Add header for each page when exporting to PDF

Next to the last article, https://blog.51cto.com/boytnt/2324214 , someone asked how to add a header to each page. In fact, the idea is very simple. For example, if you want to add a logo to the header, just add more pictures to each page when jspdf is created. First of all, the renderings are used by borrowing HUAWEI LOGO: Put the code agai ...

Posted on Tue, 17 Mar 2020 10:26:30 -0400 by beckjo1

Using HTTP proxy middleware to configure cross domain proxy in gulp server

brief introduction HTTP proxy middleware is used to forward requests to other servers in the background, which is what we usually call cross domain requests. For example, when we are developing a project, we use gulp to build a local server with the address of http://127.0.0.1:8008/, and use JSON serv ...

Posted on Sat, 14 Mar 2020 06:58:41 -0400 by phillips321

Getting started with Flask

Catalog 1, Architecture introduction 1. What is Flask? 2, Flask form operation 3, What is flask Sqlalchemy? 1. How to configure the database? 2. Define model 3. Model column type 4. Model column properties 5. Data query 6. Paging implementation 7. Flask migrate database migration 1. Model ...

Posted on Sat, 22 Feb 2020 02:50:54 -0500 by Nulletz