Nginx logically divides the configurations in order to serve different content into blocks. A server block is a subset of Nginx’s configuration that defines a virtual server used to handle requests of a defined type. Administrators often configure multiple server blocks and decide which block should handle which connection based on the requested domain name, port and IP address.
Trending Now
Soft Deletes vs Hard Deletes: Making the right choice
In the world of data management, there are often two contrasting approaches to removing information from a database: soft deletes and hard deletes. Both have their pros and cons, and the choice between them can significantly impact how your data is handled. Let's dive into this crucial decision and help you decide which option is best suited to your needs.
Running PHP 8.5 with Nginx on Ubuntu
Running modern PHP applications on a stable stack is a basic requirement for most IT and development environments. Pairing PHP 8.5 with Nginx gives you strong performance, good resource usage, and solid flexibility for APIs, CMS platforms, and custom applications.
In this guide, you will install PHP 8.5 with PHP FPM, remove older PHP versions safely, manage extensions, and configure Nginx to use the new version. The steps are written for common Linux distributions such as Ubuntu and Debian, but the logic is similar on other systems.
Premium articles
On-the-fly image resizing with Nginx
If you've ever managed a web server that serves images to thousands of users, you've probably run into the problem of serving the right image size to the right context. A 1200x800 hero image looks great on a desktop, but it's pure waste on a mobile screen or a thumbnail grid. The traditional answer to this has been generating multiple image variants at upload time, but that approach gets messy fast. A cleaner and more flexible solution is to resize images directly at the server level, on demand, using nothing more than nginx and its built-in image filter module. This guide walks you through setting that up from scratch, including caching so your server isn't processing the same image twice.
Tag-based cache inside Laravel repositories
Working with cache can drastically improve the performance of an application, especially when dealing with data that doesn't change too often. While Laravel provides solid support for caching through multiple drivers, it doesn't offer native support for cache tags. To work around this limitation, we'll integrate Symfony's Cache component, which brings tag support and fits well into the repository pattern we've already established. In this article, we'll build on the existing structure and focus on using cache tags to group and clear related data more efficiently.
ESP8266 Firmware update
The ESP8266 is a popular Wi-Fi module used in many IoT projects. Keeping its firmware up-to-date ensures you have the latest features, security patches, and bug fixes. Updating the firmware might seem difficult, but it's quite straightforward once you understand the steps involved. In this article, we'll explore how to update the firmware of the ESP8266 module, a crucial task for maintaining optimal performance and security. This update process can be carried out either locally, using a USB connection, or remotely via cloud. We'll examine both methods to provide a comprehensive understanding of how to keep your ESP8266 up-to-date with the latest firmware version.
Recent articles
The complete guide to Claude Code skills
Claude Code is already capable of doing a lot. But out of the box, it has no idea how you work. It doesn't know your stack, your standards, or what a good output looks like for your specific project. Skills are what bridge that gap. They let you define exactly how Claude should behave for any recurring task, and once that's in place, the quality and consistency of what you get back changes completely.
On-the-fly image resizing with Nginx
If you've ever managed a web server that serves images to thousands of users, you've probably run into the problem of serving the right image size to the right context. A 1200x800 hero image looks great on a desktop, but it's pure waste on a mobile screen or a thumbnail grid. The traditional answer to this has been generating multiple image variants at upload time, but that approach gets messy fast. A cleaner and more flexible solution is to resize images directly at the server level, on demand, using nothing more than nginx and its built-in image filter module. This guide walks you through setting that up from scratch, including caching so your server isn't processing the same image twice.
Running PHP 8.5 with Nginx on Ubuntu
Running modern PHP applications on a stable stack is a basic requirement for most IT and development environments. Pairing PHP 8.5 with Nginx gives you strong performance, good resource usage, and solid flexibility for APIs, CMS platforms, and custom applications.
In this guide, you will install PHP 8.5 with PHP FPM, remove older PHP versions safely, manage extensions, and configure Nginx to use the new version. The steps are written for common Linux distributions such as Ubuntu and Debian, but the logic is similar on other systems.