Deciphering Apache 2.4.58's Latest Updates October 20, 2023

View all articles from Antradar Tech Watch

Despite its limited presence in Antradar's production and development environments, Apache Server remains a key player in legacy Windows systems where WSL isn't viable. The latest changelog highlights components and concepts that could prove advantageous for our developers' toolkit.

Apache Server, also known as Apache HTTPd, operates on a fundamentally different architecture compared to Nginx. Simplistically, Apache creates multiple workers to handle simultaneous requests, while Nginx, also using a worker model, responds primarily to server I/O events, making its thread handling generally lighter. Additionally, Apache is characterized by its modular approach, allowing the incorporation of various features. In contrast, Nginx focuses on efficient request handling and distribution.

The latest changelog from Apache brings several noteworthy updates to the forefront. Key affected modules include nghttps (for proxy protocol translation), mod_lua (enabling dynamic Apache behavior changes and database integration), and improvements in Brotli compression. This update reflects Apache's commitment to core stability and addresses significant vulnerabilities and performance issues.

A major fix in this release addresses the HTTP/2 adaptation of the infamous "slow loris" attack, which had previously made Apache servers vulnerable to disruptions by multiple slow connections. This vulnerability was a driving factor in Antradar's shift to Nginx for its production environment. Apache's new update combats this by detecting and closing swarming connections, a threat that Nginx's event-driven architecture inherently manages more efficiently.

Another highlight is the flexibility offered by mod_lua, demonstrating Apache's strength in dynamic configuration. This is comparable to mod_rewrite, which allows folder-level .htaccess files to specify server rules without a restart. However, this flexibility often comes at a performance cost, especially when considering Lua script's capacity for running database queries, which may not be ideal for high-traffic servers. In contrast, Nginx, while offering a Lua module, applies it differently, focusing on running parallel "Lua Co-Routines" in its premium Nginx Plus version. Antradar, for its part, utilizes Go routines at the application layer for parallel request handling in production.

Finally, the update includes improvements in Brotli compression, touted for its superior compression ratio compared to traditional methods like gzip. However, the trade-off between CPU time and network bandwidth remains a concern, leading Antradar to continue favoring the more balanced gzip compression. For servers operating behind CloudFlare, the choice of compression method becomes less critical due to CloudFlare's own optimization capabilities.

In summary, while Apache Server's role in Antradar's technology stack is limited, its latest updates showcase its ongoing relevance and potential advantages in specific scenarios, especially within legacy Windows environments where WSL is not viable. The server's architectural differences from Nginx and its focus on modular features and core stability continue to make it a valuable component in the web server landscape.

Our Services

Targeted Crawlers

Crawlers for content extraction, restoration and competitive intelligence gathering.

Learn More

Gyroscope™ ERP Solutions

Fully integrated enterprise solutions for rapid and steady growth.

Learn More

E-Commerce

Self-updating websites with product catalog and payment processing.

Learn More
Chat Now!
First Name*:
Last Name*:
Email: optional