Category: Web

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

Guide to Installing Nginx Module for Yunsuo

In many cases, because we have compiled our own Nginx, the official Nginx automatic module may fail to install or encounter errors. Below, we will reinstall the Nginx module to better protect our website:

Note: For the latest v3 version, please visit https://www.cnop.net/html/news/security …

How to Rotate Nginx Logs Using Logrotate

As the name suggests, logrotate is specifically designed for log rotation. Simply place task configurations under /etc/logrotate.d/ and the tasks will run automatically. It requires no installation and comes built-in with the system, making it highly recommended.
# vi /etc/logrotate.d/nginx
Fill in the following information:

/home/wwwl …

How to Configure Server Status, Manager App, and Host Manager in Tomcat 7

After a default installation, the interface looks like this — there are three buttons on the right side of the homepage that you can click to enter the backend:

Below, I’ll use my test environment where Tomcat is installed at ​/usr/local/tomcat/ as an example:
The default login user and password in /usr/local/tomcat/conf/tomcat-users.xml are commented out, so logging in …

How to Write a Correct Nginx 301 Redirect

How to Redirect HTTP to HTTPS in Nginx
Redirecting HTTP to HTTPS uses Nginx’s rewrite command. So how should you write the redirect? Older versions of Nginx might have used a format similar to the following.
rewrite ^/(.*)$ http://domain.com/$1 permanent;
或者
rewrite ^ http://d …

How to Reset WDCP and MySQL Admin Passwords in WDCP Control Panel

For whatever reason, many of you using the WDCP management panel on your VPS/server have probably encountered a situation where you forgot the MySQL ROOT account password and needed a fix, or even forgot the WDCP backend admin login password. These issues are fairly simple to resolve, and all you need is a good …

How to Implement 301 Permanent Redirects in Apache

Because the website uses www.cnop.net as its domain, I wanted to redirect all traffic from cnop.net to www.cnop.net. Following Google’s recommendations, I used a server-side 301 redirect, which is the best method to ensure users and search engines are directed to the correct page. The 301 status …

How to Enable Gzip Compression (HTTP Compression) on IIS

I. Summary This article summarizes how to enable Gzip compression for websites hosted on IIS to reduce web page network transfer size and improve page display speed for users.

II. Preface. The knowledge points in this article are collected and organized from the internet, primarily sourced from Chinese wikis. Use YSlow to check which features a website has enabled …