Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

error 404

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  restricting site content  
Author Message
Markus W.

External


Since: Aug 03, 2005
Posts: 1



(Msg. 1) Posted: Wed Aug 03, 2005 3:55 am
Post subject: error 404
Archived from groups: alt>apache>configuration (more info?)

Hi!

I would like to make a custom 404 (not found) error page.

In the standard error page of Apache, Apache includes the name of the url
that was not found.

For example:
the requested URL /xxx/abc.htm was not found on this server.

In which variable is "/xxx/abc.htm" saved? Is there a way to read out this
variable on my custom error page?

Thanks in advance,
Markus

 >> Stay informed about: error 404 
Back to top
Login to vote
Tim

External


Since: Feb 09, 2005
Posts: 67



(Msg. 2) Posted: Thu Aug 04, 2005 1:55 am
Post subject: Re: error 404 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Wed, 3 Aug 2005 08:55:51 +0200,
"Markus W." <markus.wallner.TakeThisOut@hotpop.com> posted:

> I would like to make a custom 404 (not found) error page.
>
> In the standard error page of Apache, Apache includes the name of the url
> that was not found.
>
> For example:
> the requested URL /xxx/abc.htm was not found on this server.
>
> In which variable is "/xxx/abc.htm" saved? Is there a way to read out this
> variable on my custom error page?

Look into the /error directory, and read the HTTP_NOT_FOUND.... file, you
can see how they've done it. Also read the manual about how you serve out
your custom 404 (as a file it can include these things; but if you just
redirect people to another URI, it can't).

The usual variables used in 404 pages are:

REQUEST_URI (what they asked for, but didn't get)
HTTP_REFERER (what tried to refer them - the page with the broken link)

You can find out about other variables by reading into SSI (server side
includes) and CGI (common gateway interface) Apache manual information.

If you're running from Linux, the error directory might be found at
/var/www/error/. Or if you're running on Windows, it might be a
sub-directory from where the Apache program is located.

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please delete some files yourself.

 >> Stay informed about: error 404 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
MSN bot and 406 error - I have set up an English/French site using language negotiation (MultiViews). Everything works fine, except for MSN bot (MSN crawler): when this robot hits my PHP pages (I have two contact forms written in PHP), it gets a 406 HTTP error. I checked..

error 403 in 2.0.49 but not in 2.0.40 - hello one and all, i was using redhat9 which had apache 2.0.40 and i just upgraded my server to fedora 2 which has apache 2.0.49. i copied my httpd.conf file over to the new server expecting it to work and it sort of does. as long as there is an..

error.log - Hi, I still can't get my apache2 running though I read the manual carefully. ping localhost works - http://localhost (or http://127.0.0.1) shows an 404 error. Below I copied the error.log. Can anybody tell me, what's going wrong? Thanks in advance Frank...

404 Error - I'm new to Apache and have checked on Google and cannot find the answer to the error 404 that I receive when running Apache to the localhost port. I have an index.html file in the /var/www/html/ directory. I've set the permissions for 755 for the file an...

500 error with é - Hello all, i've installed Apache 2 with PHP, but when a textbox send a text with an "é", i receive a 500 error, what running wrong in my configuration?
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]