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

How to configure wordpress with nginx

Before, I had built WordPress myself, but at that...

Quickly solve the problem that the mysql57 service suddenly disappeared

one, G:\MySQL\MySQL Server 5.7\bin> mysqld --i...

How to limit the number of concurrent connection requests in nginx

Introduction The module that limits the number of...

How to install and use Ubuntu Docker

Table of contents 1. Automatic installation using...

Introduction to Docker Architecture

Docker includes three basic concepts: Image: A Do...

HTML Nine-grid Layout Implementation Method

Diversifying website layouts is our front-end spe...

Docker View the Mount Directory Operation of the Container

Only display Docker container mount directory inf...

Detailed explanation of Angular routing sub-routes

Table of contents 1. Sub-route syntax 2. Examples...

Pure CSS meteor shower background sample code

GitHub address, you can star it if you like it Pl...

Vue implements multi-tab component

To see the effect directly, a right-click menu ha...

MySQL online deadlock analysis practice

Preface I believe that everyone has had a simple ...