Koozali.org: home of the SME Server

Webserver Question

WesR

Webserver Question
« on: January 12, 2003, 01:21:07 AM »
Hi all,

my question is in regard to the way the webserver has to have exact spelling requests for files and directories. Like if a directory is named "CoolVids", you have to type it in exactly like that with the capitalization and what not. Is there a way to change it so that "coOlviDs" or "COOLVIDS" would all go to the directory named "CoolVids".

Thanks,
-Wes

Damien Curtain

Re: Webserver Question
« Reply #1 on: January 12, 2003, 05:50:05 AM »
WesR wrote:
>
> Hi all,
>
> my question is in regard to the way the webserver has to have
> exact spelling requests for files and directories. Like if a
> directory is named "CoolVids", you have to type it in exactly
> like that with the capitalization and what not. Is there a
> way to change it so that "coOlviDs" or "COOLVIDS" would all
> go to the directory named "CoolVids".

Enable mod_speling

You'll need to make a custom template (/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf) for both 20LoadModule40 and 30AddModule30 where you just uncomment the lines.

And add "CheckSpelling on" to the templates you require, probably 90e-smithAccess10primary and 90e-smithAccess40ibays. I stuck examples of the changes in http://www.pagefault.org/download/misc/ these are version 5.6 template fragments.

There's a similar apache module last time I looked that has the case insensitive without the spelling feature, such as if you enable mod_speling and someone types coolvdis they will get coolvids.
--
 Damien

Damien Curtain

Re: Webserver Question
« Reply #2 on: January 12, 2003, 05:51:34 AM »
One thing to keep in mind is I don't think this works across defined directories, ie. If someone spells or has the wrong case for an ibay name then this wont help them.
--
 Damien