Make Webserver Case Insensitive

Make apache2 webserver case insensitive with apache2 mod_speling

Some games require FastDL to be case insensitive, apache2 is case sensitive by default. Enabling apache2 mod_speling ignores case sensitivity on a LAMP stack. This guide applies to debian and ubuntu. At the bottom of this page are external guides that include CentOS/Fedora. This workaround will not work on shared webhosting where editing apache2 files is not available.

Enable mod_speling:

a2enmod speling

Restart apache:

service apache2 restart

Apache needs to be told which directories mod_speling is applied to, open the webserver's .conf file located inside /etc/apache2/sites-available/ and set AllowOverride to All.

Example:

<Directory /var/www/html/>
	Options Indexes FollowSymLinks
	AllowOverride All
	Require all granted
</Directory>

Set apache2 to use the .conf file you just edited:

a2ensite name_of_.conf_file

In /var/www/html/ or your webserver directory, create a .htaccess file with this:

<IfModule mod_speling.c>
CheckSpelling On
CheckCaseOnly On
</IfModule>

Test the configuration by creating a file, like test.txt, and see if it can be opened in browser by typing TEST.txt, test.TXT, etc. If it works, you are finished.

mod_speling Documentation

Guides from other sources:

Wikitechy mod_speling Guide

a2Hosting mod_speling Guide

Last updated