Custom error page without Error Document

Is it possible to do some custom error page like: http://www.google.com/dsdsde
without the use of Error Document + dynamic script such as PHP (What I
want is just put the request URI back to the error page + some custom
design)

I don't want to build some overhead into the 404 not found by using a
PHP script.

I have tried to modified the "HTTP_NOT_FOUND.html.var" but no luck...

Any suggestion?

Thanks.
howa [ Mo, 07 Januar 2008 11:51 ] [ ID #1901742 ]

Re: Custom error page without Error Document

On Mon, 7 Jan 2008 02:51:33 -0800 (PST), howa
<howachen [at] gmail.com> wrote:

>Is it possible to do some custom error page like: http://www.google.com/dsdsde
>without the use of Error Document + dynamic script such as PHP (What I
>want is just put the request URI back to the error page + some custom
>design)
>
>I don't want to build some overhead into the 404 not found by using a
>PHP script.
>
>I have tried to modified the "HTTP_NOT_FOUND.html.var" but no luck...
>
>Any suggestion?
>
>Thanks.

Add:
<!--#echo var="REQUEST_URI" -->
for example to:
%serverroot%\error\include\top.html
or
%serverroot%\error\include\bottom.html
--
( Kees
)
c[_] I drink to make other people interesting. (#121)
Kees Nuyt [ Mo, 07 Januar 2008 13:49 ] [ ID #1901743 ]

Re: Custom error page without Error Document

On Jan 7, 12:49 pm, Kees Nuyt <k.n... [at] nospam.demon.nl> wrote:
> On Mon, 7 Jan 2008 02:51:33 -0800 (PST), howa
>
> <howac... [at] gmail.com> wrote:
> >Is it possible to do some custom error page like:http://www.google.com/dsdsde
> >without the use of Error Document + dynamic script such as PHP (What I
> >want is just put the request URI back to the error page + some custom
> >design)
>
> >I don't want to build some overhead into the 404 not found by using a
> >PHP script.
>
> >I have tried to modified the "HTTP_NOT_FOUND.html.var" but no luck...
>
> >Any suggestion?
>
> >Thanks.
>
> Add:
> <!--#echo var="REQUEST_URI" -->
> for example to:
> %serverroot%\error\include\top.html
> or
> %serverroot%\error\include\bottom.html
> --
> ( Kees
> )
> c[_] I drink to make other people interesting. (#121)

e careful to escape the uri in case of script injection
shimmyshack [ Mo, 07 Januar 2008 21:56 ] [ ID #1901750 ]
Webserver » alt.apache.configuration » Custom error page without Error Document

Vorheriges Thema: newbie: I want to use ~user/public_html
Nächstes Thema: Problem: apache plugin initialises statics twice