Today, the server reinstall the system, do Apache tuning, optimize the next Apache network address case-insensitive support. The records are as follows:
Compile the mod_speling.so module to remove Apache-url-case-sensitive configuration
1. Enter the modules/mappers/directory of the Apache source code
2. Run the following command to automatically compile, install, and modify the httpd.conf file to activate the Mod_speling.so module:
/www/wdlinux/apache/bin/apxs-c-i-a mod_speling.c
Option Description:
-C Perform a compile operation
-I installation operation to install one or more dynamic shared objects to the server's modules directory
-a automatically adds a loadmodule line to the httpd.conf file to activate this module, if this line exists it is enabled
-A is similar to-a, but it adds a loadmodule prefix (#) before the line.
-e requires an edit operation that can be used with the-A and-a options, similar to the-I operation, to modify the httpd.conf file, but not to install the module
1. Download a version of the installation package that is the same as the Apache currently in use
2. Unzip the installation package and enter its directory
Cd/www/wdlinux/apache/modules/mappers/ll
This directory has a mod_speling.c file
3. Generating module
/www/wdlinux/apache/bin/apxs-c-i-a mod_speling.c
Note:/www/wdlinux/apache/for my production environment of the Apache directory, completed above will be in the/www/wdlinux/apache/modules/directory under the mod_speling.so module file
Add in the/usr/local/apache/conf/httpd.conf
LoadModule speling_module modules/mod_speling.socheckspelling on
CheckSpelling on (plus this)
Apache sometimes "multiple Choices" after opening checkspelling on
Module Mod_negotiation:
Content negotiation, more accurately, content selection, is a process of selecting a document that best matches the client's requirements from several valid documents, and you can use the "multiviews" search (activated by the MultiViews option in the options Directive).
This function looks really good, very good user experience, but in some cases it is a bit superfluous, the following talk about how to block this feature, you now know that there are two ways:
1. Add error page
Generally this situation will be reported 300 error, you can add error page
ErrorDocument 300/errpage/400.html
This will automatically jump to the errpage/400.html page, it will not show the download list
2. Open httpd.conf, locate checkspelling on,
Change checkspelling on to CheckSpelling OFF
Turn on the Apahce mod_speling.so module, let the APAHCE HTTP server no longer have the case to worry