1833187 Members
2439 Online
110051 Solutions
New Discussion

Re: An apache question.

 
SOLVED
Go to solution
Steven E. Protter
Exalted Contributor

An apache question.

I'm pretty good at configuring apache with httpd.conf I'm running a web hosting business on it, but one thing has escaped me.

When a user types in a bad link, or a bad link is posted to a site, my users get the standard DNS error screen from the browser.

I would like to know how to configure the httpd.conf file to take all error 404(file not found right) errors and go to a special web page that I design. I'm thinking a cgi script that will after a delay take the user back to a legitimate page in the site.

I'd like to see an httpd.conf snippet please, I can write the cgi script myself.

Thanks.

As always, points liberally awarded. 10 points for a working solution.
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
4 REPLIES 4
Robert-Jan Goossens
Honored Contributor
Solution

Re: An apache question.

Hi,

Something like this,

http://www.modwest.com/help/kb1-35.html

Best wishes,

Robert-Jan.
Steven E. Protter
Exalted Contributor

Re: An apache question.

I'll be trying it out tonight, but the document looks rock solid.

Steve
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jim Butler
Valued Contributor

Re: An apache question.

That is a great idea!
Thanks
Man The Bilge Pumps!
Steven E. Protter
Exalted Contributor

Re: An apache question.

I tested it internally on our HP-UX Apache installation. It works great.

Steve
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com