You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Niklas Edmundsson <ni...@ing.umu.se> on 1999/10/09 01:49:13 UTC

Re: mod_speling/4677: Patch: Only correct spelling if no Referer

Attached is a patch for mod_speling.c in apache 1.3.6 and 1.3.9 that
introduces a config-option to only check the spelling of an URL when
there is no Referer-header, ie only when the user has entered the URL
manually.

This makes it possible to have mod_speling enabled on a
production-server without having users that have pages with misspelled
URL's causing the server to fix the spelling very often (which can be
very annoying if you have your users' home-directories mounted via
nfs).

It introduces the option CheckSpellingWithReferer (which defaults to
on for no change in the default behaviour) which, when set to off,
disables the check when there is no Referer-header.

We have used this patch on our production-server running Apache 1.3.6
for a while now, it works for us :-)

All credits for this patch should go to Magnus Jonsson
<bi...@acc.umu.se>.


With hopes of getting this included in the main Apache distribution.

/Nikke - SysAdmin at the Academic Computer Club, Ume� University, Sweden
-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Niklas Edmundsson, Admin @ {acc,hpc2n,ing}.umu.se    |   nikke@ing.umu.se
---------------------------------------------------------------------------
 Printers do it without wrinkling the sheets.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=