Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old February 14th, 2001, 01:39 PM
hakonfl hakonfl is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: Sandnessjøen, Norway
Posts: 3 hakonfl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question

Hello.

The problem is MSIEE. When an error 404 (file not found) appers it shows its own internal page, omitting my error-message-script-page with lots of useful information for the users...

Is there a way telling Apache NOT to send the 404 (or other errors) to the client browser?

And can I control WHEN Apache should send the error-message?

The reason is: I have a lot of database generated pages on my server with adresses like URL

The directory GENERATED_PAGE/ does not exist but is generated as a reply if the directory exist whitin the database but not as a directory on the server. Since it is not on the disc, an error 404 is generated.

I have made a error404.php-script comparing the adress whith the database. If the adress is found in the database, a page is generated. If not a error-message is generated.

Any suggestions?

Reply With Quote
  #2  
Old February 14th, 2001, 02:30 PM
waldthau waldthau is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: Colorado
Posts: 46 waldthau User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Question

__________________
- MW

Reply With Quote
  #3  
Old February 15th, 2001, 12:53 AM
Keyshound Keyshound is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 1 Keyshound User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to Keyshound
Angry Still doesn't work for me.

My situation is similar to the first post. I've gotten the .htaccess file formatted properly yet now I get a 404 with an additional comment at the bottom that reads,

"Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request. "

At first I thought the script that the 404 was supposed to go to was messed up but it wasn't. I then tried have the 404 page be an HTML page on another server but I still got the same error. Please help, thanks!

Reply With Quote
  #4  
Old February 15th, 2001, 07:10 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> if the directory exist whitin the database but not as a directory on the server

It's the problem with your script that failed to check for directory existence correctly, then your script's execution stops and Apache takes over and send the 404 to browser. It's definitely your scripting problem.

>> Is there a way telling Apache NOT to send the 404 (or other errors) to the client browser?

Yes, but not recommended. You can put "-FileInfo" (without quotes) to http://www.server.net/.htaccess or in the directory block of your docroot, just don't put AllowOverride All or remove FileInfo from it.

>> My situation is similar to the first post

The answer to your question is similar as above. Additionally, you think your .htaccess file is properly formatted and your script is functioning but don't assume that's really the case.
Anyway, not enough info, please repost.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > How do I make Apache not sending http 404-error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway