Turn on the Apahce mod_speling.so module, let the APAHCE HTTP server no longer have the case to worry

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.