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

Troubleshooting and solutions for MySQL auto-increment ID oversize problem

introduction Xiao A was writing code, and DBA Xia...

Web Design Experience: 5 Excellent Web Design Concepts Full Analysis (Pictures)

Unlike other types of design, web design has been ...

Three examples of blur background effects using CSS3

Let’s not start with the introduction and get str...

Some understanding of absolute and relative positioning of page elements

From today on, I will regularly organize some smal...

Issues with upgrading Python and installing Mongodb drivers under Centos

Check the Python version python -V If it is below...

Is it necessary to create a separate index for the MySQL partition field column?

Preface Everyone knows that the partition field m...

Front-end advanced teaching you to use javascript storage function

Table of contents Preface Background Implementati...

Vue.js implements the code of clicking the icon to zoom in and leaving

The previous article introduced how Vue can reali...

...