Rick's picture

Hi,

Newbie here and I'm using TurnKey's Lighttpd - which is awesome!
But, I have a issue when it comes to my game server using it as a fast download server, it won't let the players download the files due to some lines using upper- or lowercase - way Too much work for me to rename all files as a workaround.

I've been searching through the forum and google how to install mod_speling, but no luck :/
Anyone up to describe how to install it from start to end?

Thanks in advance!

Forum: 
Tags: 
Rick's picture

Where?

Jeremy Davis's picture

So I've deleted them. Having said that, the suggestion of mod_spelling may be an option. However, it's an Apache module so would require you to use Apache (i.e. LAMP or similar). LigHTTPd may have something similar, but TBH I doubt it.

Also renaming the files is really the best way to go. If you use something like mod_spelling, then everytime a user browses your server, it needs to work harder as it needs to look for all possible filenames that may match. If you rename your files, that only needs to be done once!

Linux has an array of awesome commandline utils which makes things like this pretty easy. E.g. to replace all upper case characters with their lower case equivalent for all html files in /var/www, try 'rename':

cd /var/www
rename 'y/A-Z/a-z/' *.html

If you want to test what it will do before you actually do anything, add the '-n' switch. E.g.:

# rename -n 'y/A-Z/a-z/' *.html
FILEname.html renamed as filename.html

Essentially it uses (Perl format) regular expressions to change the names. So ou can also use this to swap out any other characters which are problematic.

Add new comment