allow case-sensitive or enables your web site to process filenames that vary in their case.

To enable the mod_speling module on Ubuntu

1.Login into your server using SSH

2.enable mod_speling module

#a2enmod speling

3.Restart Apache

#service apache2 restart

4.Edit web site configuration and Add AllowOverride directive is set to ALL,,Example apache default configuration

#vi /etc/apache2/sites-available/000-default.conf
 <Directory /var/www/html>
 AllowOverride All

5.Create an .htaccess file that includes the following lines in /var/www/html

#vi /var/www/html/.htaccess
<IfModule mod_speling.c>
    CheckCaseOnly on
    CheckSpelling on

6.Restart Apache

#service apache2 restart

7.Test the configuration. For example, if you have a file named test.html, you should now be able to view it in your web browser by specifying Test.html, TEST.html, test.HTML, or any other case combination in the URL.



One thought on “Apache2 module mod_speling

Leave a Reply

Your email address will not be published.