cgiwrap might be interested in my error 404 generation kit. This is an ex=
tract =
from a larger project, hence the mutilple header files. It assumes you us=
e GNU =
autoconf, put the results in config.h and have an absolute path defined i=
n =
config.h.
FYI as you can see the code in error404.c can be used to generate other e=
rrors =
too. The actual page is 404.html with the % signs substituted. The 404 pa=
ge in =
404.html is visually indistinguishable from the default apache one. You c=
an =
distinguish it because the apache one is not valid XHTML. If I replaced t=
he =
fpiuts_entified with fputs nasty people might be able to get evil javascr=
ipt =
into the resulting page. Similar logic is applied in apache.
There is an error404 function in error_page.h. Eliminating the excess > i=
n =
404.html is left as an exercise as removing attatchments easily is not a =
feature of my email client.
Feel free is use either under either the GPL or cgiwrap licence, if this =
is =
different. If you want the files under some other licence then please con=
tact =
me privately.
|