Solve the problem of case sensitivity of Linux+Apache server URL

Solve the problem of case sensitivity of Linux+Apache server URL

I encountered a problem today. When entering the URL address in the browser address bar, it must be case-sensitive to access the page normally. The website server is Linux+Apache

The main reason for this phenomenon is the lack of speling module, so just load it in the corresponding system.

1. Debian system

Relatively simple under Debian system

1. Find speling.load from the path /etc/apache2/mods-available and copy it to the path /etc/apache2/mods-enabled

2. Write the file speling.conf to the directory /etc/apache2/mods-enabled

The content of speling.conf is very simple. I only wrote the following line:

CheckSpelling on

3. Add speling.load and speling.conf to /etc/apache2/mods-enabled and restart Apache.

2. CentOS system

It's a little annoying under centos system.

1. Check whether the system has the module mod_speling.so , path: /etc/httpd/modules ; if it does, just pass it, if not, download one from somewhere else and use it

2. Load this module

vi /etc/httpd/conf/httpd.conf

In the module loading area, add the following line:

LoadModule speling_module modules/mod_speling.so
CheckSpelling on

Save changes and exit

Restart Apache and enter the URL again. This time it is case insensitive and can be accessed normally.

You may also be interested in:
  • Steps to build a file server using Apache under Linux
  • Analysis of the implementation method of Nginx and Apache coexistence under Linux server
  • 8 Security Tips for Linux Apache Web Server Security
  • Deploy Python's Django project to Apache server under Linux
  • View Apache Server Error Log on Linux System
  • Linux installation apache server configuration process

<<:  Detailed explanation of generic cases in TypeScript

>>:  A brief analysis of the usage of USING and HAVING in MySQL

Recommend

React-Native environment setup and basic introduction

Environment Preparation 1. Environment Constructi...

Usage of MySQL time difference functions TIMESTAMPDIFF and DATEDIFF

Usage of time difference functions TIMESTAMPDIFF ...

How to add fields and comments to a table in sql

1. Add fields: alter table table name ADD field n...

How to deploy MySQL master and slave in Docker

Download image Selecting a MySQL Image docker sea...

Example of automatic import method of vue3.0 common components

1. Prerequisites We use the require.context metho...

Ubuntu 18.04 obtains root permissions and logs in as root user

Written in advance: In the following steps, you n...

A complete example of implementing a timed crawler with Nodejs

Table of contents Cause of the incident Use Node ...

Nginx cache files and dynamic files automatic balancing configuration script

nginx Nginx (engine x) is a high-performance HTTP...

JS implements a stopwatch timer

This article example shares the specific code of ...

Detailed Analysis of the Differences between break and last in Nginx

Let's talk about the difference first last, t...

Examples of implementing progress bars and order progress bars using CSS

The preparation for the final exams in the past h...

Basic use of javascript array includes and reduce

Table of contents Preface Array.prototype.include...

Facebook's nearly perfect redesign of all Internet services

<br />Original source: http://www.a-xuan.cn/...

Detailed explanation of Nginx static file service configuration and optimization

Root directory and index file The root directive ...