Passive way of collecting nginx logs by graylog2

Graylog can collect nginx logs in two ways: one is through the Graylog Collector Sidecar (active mode), and the other is through modifying the nginx configuration file (passive mode). This time, let's change the nginx configuration file (passive mode). The advantage of passive mode is that nginx sends the defined log fields to the user-defined ...

Posted by TheDefender on Sun, 15 Mar 2020 20:52:31 -0700

nginx accesses the project through the domain name (do not receive the project name), cookie loss problem details

Recently, I got a domain name. If I want to use it to directly access the project deployed on Tomcat, I have to add the project name at the beginning. After a short configuration, it succeeded. Visit once and arrive at the landing page. As a result, you can't log in. You have been logging in the inte ...

Posted by bundyxc on Wed, 04 Mar 2020 21:16:34 -0800

Node.js Foundation: Chapter 3

Chapter 1: basic concepts of server 1.1 - composition of the website Web applications are mainly divided into two parts: client and server. Client: the part that runs in the browser is the interface program that the user sees and interacts with. Build using HTML, CSS, JavaScript. Server side: the part running in the server, responsible for sto ...

Posted by ctsiow on Sat, 22 Feb 2020 01:43:32 -0800

Go language defer and recover

1.defer is the code segment executed when the function returns. Whether it is return or panic, the code snippet in defer will be executed. 2.recover is used to capture panic in the defer code segment. When panic occurs, the defer code segment will be executed, in which if recover is available, The panic will be captured and use ...

Posted by Dongowarrior on Thu, 13 Feb 2020 12:45:04 -0800

Dynamic Expansion of Cloud Disk Data Volume Using Ali Cloud CSI Plugin

Using cloud disks to store volumes often requires a cloud disk of appropriate capacity when the service is initialized, but as data grows, the capacity of the data disk cannot meet demand and needs to be expanded. In the expansion scenario of traditional applications, it is often necessary to stop the application manually, back up the data disk ...

Posted by Peter Anselmo on Wed, 12 Feb 2020 17:36:09 -0800

squid installation and traditional mode

Overview of squid proxy server; Overview: Squid Cache (SQUID for short) is http proxy server software. Squid is widely used as a cache server or a cache proxy server. It can be used as a proxy server for users to request data from the web server and cache it. It can filter traffic to help network secu ...

Posted by Sno on Tue, 11 Feb 2020 03:27:11 -0800

[JAVA] HTTP protocol learning notes

1. introduction HyperText Transfer Protocol (HTTP) is a standard (TCP) for client (user) and server (website) requests and responses. It is an application layer protocol based on TCP/IP protocol. Request response mode Stateless protocol Do not save the communication state between the request and the ...

Posted by luked23 on Sun, 09 Feb 2020 23:50:03 -0800

Exception handling of spring MVC

One way try....catch...finally, catch and handle exceptions in catch       Mode two Set the default global exception handler.   In case of any abnormality, throw upward one by one, In this process, if the exception is caught and handled by catch, it will be OK; If there is no corresponding catch to catch and handle exceptions, they will be fin ...

Posted by Eric T on Sun, 02 Feb 2020 05:56:25 -0800

node web module (server and client)

node web module web server Web server refers to website server, which refers to a program residing on the Internet, the basic function of web browser, and provides information browsing service The web supports the script language on the server side. The script language obtains data from the database and returns the results ...

Posted by fireant on Fri, 31 Jan 2020 01:59:15 -0800

Squid Proxy Server - Traditional Proxy, Transparent Proxy (Practice!)

Overview of Cache Agents How web proxies work: Cache Web page objects to reduce duplicate requests Basic types of agents Traditional Proxy: For Internet use, specify the server explicitly Transparent proxy: Clients do not need to specify the proxy server's address and port. The firewall redirects ...

Posted by quimkaos on Wed, 22 Jan 2020 23:44:27 -0800