Linux Apache URL address case Sensitive solution

Source: Internet
Author: User

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.

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.