Implementing TinyWebServer from scratch

Original author: https://zhuanlan.zhihu.com/p/364044293   From 0 to server development -- TinyWebServer preface: Project code for modification, complete annotation and addition of functions: https://github.com/white0dew/WebServer What is it—— C + + lightweight Web server under Linux helps beginners quickly practice network pr ...

Added by DavidP123 on Fri, 11 Feb 2022 23:37:11 +0200

Demonstration of the most basic configuration of nginx

Reverse proxy Reverse proxy diagram Configuration file nginx conf Just configure the proxy in the server_ Pass is OK. Everything else is the default. #user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; events { worker ...

Added by noimad1 on Sun, 30 Jan 2022 09:16:55 +0200

Installing Apache2 Web server A on CentOS-8.4

CentOS-8.4 + Linux-8 source code compile and install Apache2 Web server "complete essence version [subject index] P-01) system & Environment Running environment: Laboratory Virtual Environment System model: ctenos-8.4-x86_ sixty-four Linux version: linux-8-x86_ sixty-four CPU & Memory: 4H + 4GB P-02) preparation before i ...

Added by lucidpc on Thu, 23 Dec 2021 18:55:02 +0200

spring boot source parsing and startup process

First of all, spring boot is a simplified development framework with convention greater than configuration. If I look at the source code of spring boot, I think there are two directions. One is the process of spring boot based on spring container and some of its own startup. The other is the implemen ...

Added by PHPLRNR on Tue, 23 Jun 2020 08:49:04 +0300

LNMP Architecture - Nginx parsing PHP related configuration, Nginx agent

Nginx parsing PHP related configuration configuration file vim /usr/local/nginx/conf/vhost/test.com.conf ......... location ~ \.php$ { include fastcgi_params; //fastcgi_pass 127.0.0.1:9000 fastcgi_pass unix:/tmp/php-fcgi.sock; //There are two listening formats of fastcgi ﹐ pass, ...

Added by phpSensei on Thu, 30 Apr 2020 15:35:29 +0300

The Bible of Go language -- floating point exercises

Exercise 3.1: if the f function returns an unrestricted float64 value, the SVG file may output invalid polygon elements (although many SVG renderers will handle this properly). The modifier skips invalid polygons. Exercise 3.2: experiment with rendered graphics for other functions in the math package. Can you output an egg box, moguls or a sadd ...

Added by achintha on Sat, 04 Apr 2020 07:00:10 +0300

The solution of canvas.toDataURL() error reporting is all here

Error reporting details Uncaught DOMException: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported. Key word canvas.toDataURL() crossOrigin Access-Control-Allow-Origin Preface Recently, I am making a creative image synthesis tool, which is to generate a product image by splicing customized text and image ...

Added by mckooter on Sun, 29 Mar 2020 15:54:49 +0300

Learn ECs from scratch - Docker+Tomcat+Nginx+MySQL

brief introduction For the enterprise application architecture, it is certainly not limited to one server. According to my imagination: at least one server that deploys the back-end interface; one server that deploys the front-end page; one server that acts as a proxy; one server that loads the database, etc., which does not include load balanc ...

Added by M.O.S. Studios on Tue, 24 Mar 2020 12:43:14 +0200

Summary of vue project optimization

1. The log console used in the development is set as the development output and not output when running Installation: Babel plugin transform remove console development dependency //Add to babel.config.js file //This is the babel plug-in to be used in the project release phase const prodplugins = [] //Determine whether it is an operating ...

Added by Blade280891 on Sat, 07 Mar 2020 09:54:10 +0200

JavaScript global error handling

I want to catch every undefined function error thrown. Is there a global error handling tool in JavaScript? The use case is to capture undefined flash function calls. #1 building How to catch unhandled Javascript errors Assign the window.onerror event to the event handler, such as: <script type="text/javascript"> window.onerr ...

Added by Lassie on Thu, 05 Mar 2020 12:09:47 +0200