Linux is sensitive to file directory capitalization, and URL case sensitivity can cause web pages to not open, one of the solutions is to enable the Apache mod_speling.so module. Suppose the Apache installation directory is/usr/local/apache2.
First, confirm the existence of the mod_speling.so module in the/usr/local/apache2/modules directory.
Second, the compilation mod_speling.so module, enters the Apache source code modules/mappers/directory, runs the following command automatically compiles, installs and modifies httpd.conf file, activates the mod_speling.so module:/usr/local/ Apache2/bin/apxs-c-i-a mod_speling.c
APXS command Option Description
1.-c perform the compile operation.
2.-i installation operation, install one or more dynamically shared objects to the server's modules directory.
3.-a automatically adds a loadmodule line to the httpd.conf file to activate the module, which is enabled if this row exists.
4.-a is similar to-a, but it adds a loadmodule prefix (#) before the line.
5.-E requires an edit operation that can be used in conjunction with the-A and-a option, and similar to-I, modifying the httpd.conf file without installing the module.
Add in/usr/local/apache2/conf/httpd.conf:
LoadModule Speling_module modules/mod_speling.so
CheckSpelling on restarts apache:/usr/local/apache2/bin/apachectl restart or service httpd restart.