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

Trying to use custom 404 error page

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Realtime Apache Status?  
Author Message
sean_berry

External


Since: May 27, 2004
Posts: 2



(Msg. 1) Posted: Thu May 27, 2004 6:16 pm
Post subject: Trying to use custom 404 error page
Archived from groups: alt>apache>configuration (more info?)

I have added the following line to my httpd.conf file:

ErrorDocument 404 /cgi-bin/forward

forward is a Python program that determines the server name and
forwards a user on to a site-tree of the domain they were looking
for.

The problem is that it is not using the forward program.

There was already an existing, system wide, special 404 error page
that will work if I change the above to /cgi-bin/missing.

If I go to www.domain.com/cgi-bin/forward it works... but not if
I get a 404 error... it just shows the generic 404 page.

Any help here? I really appreciate it.


----- By the way -----
The reason I am using this script is because I tried the following
ErrorDocument 404 /not-found.shtml ... and ...
ErrorDocument 404 not-found.shtml

Neither worked. So I figured apache was looking for these in its
root directory. I need a different not-found.shtml for each domain
so a global approach would not work.

Is this right, am I missing somehting here?

 >> Stay informed about: Trying to use custom 404 error page 
Back to top
Login to vote
sean_berry

External


Since: May 27, 2004
Posts: 2



(Msg. 2) Posted: Thu May 27, 2004 6:31 pm
Post subject: Re: Trying to use custom 404 error page [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Problem solved.

Been at this for over an hour... I posted here, then figured it out right
away.


"Sean Berry" <sean_berry RemoveThis @cox.net> wrote in message
news:oNttc.501$VI2.302@fed1read02...
 > I have added the following line to my httpd.conf file:
 >
 > ErrorDocument 404 /cgi-bin/forward
 >
 > forward is a Python program that determines the server name and
 > forwards a user on to a site-tree of the domain they were looking
 > for.
 >
 > The problem is that it is not using the forward program.
 >
 > There was already an existing, system wide, special 404 error page
 > that will work if I change the above to /cgi-bin/missing.
 >
 > If I go to <a style='text-decoration: underline;' href="http://www.domain.com/cgi-bin/forward" target="_blank">www.domain.com/cgi-bin/forward</a> it works... but not if
 > I get a 404 error... it just shows the generic 404 page.
 >
 > Any help here? I really appreciate it.
 >
 >
 > ----- By the way -----
 > The reason I am using this script is because I tried the following
 > ErrorDocument 404 /not-found.shtml ... and ...
 > ErrorDocument 404 not-found.shtml
 >
 > Neither worked. So I figured apache was looking for these in its
 > root directory. I need a different not-found.shtml for each domain
 > so a global approach would not work.
 >
 > Is this right, am I missing somehting here?
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Trying to use custom 404 error page 
Back to top
Login to vote
psychosos

External


Since: Jul 08, 2003
Posts: 29



(Msg. 3) Posted: Fri May 28, 2004 3:34 am
Post subject: Re: Trying to use custom 404 error page [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Sean Berry" <sean_berry.TakeThisOut@cox.net> wrote:
 >Problem solved.
 >
 >Been at this for over an hour... I posted here, then figured it out right
 >away.

Good to hear you were able to solve it. Could you tell us also how you
solved it? I am just curious.
Thank you!
Regards,
johannes<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Trying to use custom 404 error page 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
referring page in custom 404 - As part of my 404, I want to offer a link back to the referring page. Doing this makes no sense if there wasn't one. Currently, I have: <!--#if expr="$HTTP_REFERRER = '(none)'" --> You appear to have typed this URL directly.</P> &...

404 re-direct instead of generic page or custom page - Strange question. I know within the configuration of Apache (2.X) that I can have a custom 404 page. I would rather re-direct the request to a known good page that is not on my server at all (i.e. www.google.com). The questions is; will this..

Custom Error Pages - Hi All, I am using Apache 2.0.43 / Tomcat 4.1.12 / mod_jk2 , and having no success with using a custom Apache error page (local redirect) or even making plain text additions.. For example, in the Apache configuration file httpd: ErrorDocument 404 ..

Custom Error Pages - Hi all Trying to create custom error pages, pages are displayed when errors occur but images are not displayed In my cfg file I have ErrorDocument 403 /error/403.htm ErrorDocument 404 /error/404.htm I have an error folder in the root of each vhost..

Custom error CODES - Hi there, following situation: We use custom error codes like "852" to report special errors in a Java web application. We use Apache 1.3 together with the Websphere Application Server 4 from IBM which handles all the requests for dynamic con...
   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 ]