Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save amolkhanorkar/7245465 to your computer and use it in GitHub Desktop.
Save amolkhanorkar/7245465 to your computer and use it in GitHub Desktop.
I got an error while setting up an site, which is having some changes with their file names (Diff. in Upper/Lower case).
[Thu Oct 31 00:29:59 2013] [error] [client x.x.x.x] script '/var/www/www.abcd.com/wwwroot/mlbteamstandings_data.php' not found or unable to stat, referer: http://demo-abcd.xyz.com/index.php?option=com_content&view=article&id=86&Itemid=839
So, issue has been resolved by adding apache2 CheckSpelling and CheckCaseOnly module into the virtualhost file.
<VirtualHost *:80>
ServerName demo-abcd.xyz.com
DocumentRoot /var/www/www.abcd.com/wwwroot
<Directory /var/www/www.abcd.com/wwwroot>
Options Indexes FollowSymLinks
AllowOverride All
AuthType basic
AuthName "Authentication Required"
AuthUserFile /etc/apache2/.htpasswd
Require valid-user
</Directory>
CheckSpelling on
CheckCaseOnly off
</VirtualHost>
After that need to restart your webserver.
/etc/init.d/apache2 restart
Now its working fine!!
Cheersss..... :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment