Category: Apache

Apache vs Nginx: A Tale of Two Web Servers

Apache and Nginx power a huge share of the modern web, but they were born in very different eras to solve very different problems. This article traces their histories from NCSA HTTPd and the C10k problem through to today’s hosting stacks, then compares their architectures, strengths, weaknesses, and ideal use cases.

Read More »

How to Add a Custom HTTP Header to All Sites on a Plesk Server

Adding custom headers is a useful way to identify, trace, or control web traffic across a hosted environment. This guide walks through the process of adding the HTTP header X-Hosted-By: ExampleHost to all websites running on a Plesk server, across both nginx and Apache layers. Why Add a Custom Header? Custom HTTP headers can: Identify the infrastructure powering your site (e.g., for branding or tracing) Assist in diagnostics or security logging Be used for custom caching or CDN logic Step-by-Step: Add Header in nginx Step 1: Copy the nginx Template First, copy the default Plesk template into a custom directory:

Step 2: Edit the Template Open the copied file:

Locate the block that outputs header directives, such as:

Insert your custom header right after:

Step 3: Rebuild nginx Configurations

Step 4: Restart nginx

Step-by-Step: Add Header in Apache Step 1: Copy the Apache Template

Read More »

Protecting Website Search Function from Excessive Bot Traffic

Search functionality is a critical part of any website, helping users quickly find the information they need. However, excessive bot traffic—especially from search engine crawlers—can put a strain on your server resources, slow down performance, and even lead to increased hosting costs. One common issue is search engines aggressively crawling internal search pages, which are not meant for indexing. In this blog post, we’ll explore how to prevent unwanted bot traffic, particularly from Bingbot, using .htaccess rules to return a 404 error for specific URLs. Why Restrict Bots from Crawling Search Pages? Search engine bots, like Googlebot and Bingbot, continuously crawl websites to index their content. While this is generally beneficial for SEO, unrestricted crawling of search results pages can: Waste server resources: Bots continuously hitting dynamic search pages increase load on your database and web server. Index unnecessary pages: Internal search results don’t provide valuable standalone content and can

Read More »

Get Top 10 User Agents

Extract a list of the top user agents from an Apache format log file and sort in descending order by number of occurrences:

Results similar to this:

   

Read More »

Categories

Get a free consultation from Reliable Penguin

Submit the form—or for immediate service call 866-649-7984.