Category: Web

Apache (16)
GlassFish (0)
HAProxy (2)
IIS (20)
Nginx (55)
Other (4)
Tomcat (17)

How to Install Yunsuo Protection Module for Tomcat

Note: Before installation, you can re-download Tomcat to ensure it is in a normal state prior to installing this program.
Environment: Tomcat + Yunsuo 3.0
1. Download and extract the attachment: Attachment Download https://www.cnop.net/uploadfile/2017/0227/20170227025519812.zip #cd /usr.local/tomcat …

How to Set Custom Nginx Variables for Logging

Note: This file is the nginx configuration file nginx.conf. Settings here take effect globally. Please define the relevant variable names in your program in advance, and enable the access.log writing feature in nginx (enabled by default). 1. Enable underscore support (by default, underscores in variables are not recognized): vi /usr/local/nginx/conf/ngin …

How to Change TLS Version in Nginx

Recently while working on a WeChat Mini Program, I ran into an issue: the TLS version must be greater than 1.2
Here’s how to fix it:

It’s common knowledge that WeChat Mini Programs only support HTTPS, so I won’t go into SSL configuration here. Below, using my Nginx setup as an example, I’ll show you how to resolve the TLS version requirement: vi /usr/local/nginx/conf/vhost/www. …

How to Configure Nginx User Authentication

Note: The goal is to require visitors to enter a username and password before accessing the site.
The ngx_http_auth_basic_module allows access to web content only when the correct username and password are entered. Some content on the web is not meant for public viewing, but you still want to share it with a select group …

Web.xml Priority in Tomcat vs. Project

When deploying a project, if I don’t configure web.xml in my own project, all request links will follow the web.xml configuration under Tomcat, such as the homepage, timeout settings, etc.
The web.xml in Tomcat is generic; if not configured, it defaults to Tomcat’s web.xml, such as …

How to Fix Tomcat Session Storage Errors with Memcached Configuration

How to Fix Kryo SerializationException in Nginx Tomcat Memcached Session Integration

Recently, while configuring an Nginx + Tomcat + Memcached cluster for session management, I encountered an error when using the more efficient Kryo serialization method.
The error message:

Caused by: com.esotericsoftware.kryo.SerializationException: Unable to deserialize object o …

How to Install and Configure Jenkins on Linux

System Requirements:
Linux (CentOS in my case)
Tomcat or TomEE
Maven (typically already present on most systems)
Java

1. Jenkins Download

Download URL: http://jenkins-ci.org/

2. Installation
I won’t go into Tomcat installation details here. If you’re unfamiliar with it, check out previous articles on this site …