logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Custom 404 Page
Author
halstead



Joined: 08 Dec 2009
Posts: 3
Location: Hillsboro Oregon USA

PostPosted: Tue 08 Dec '09 1:17    Post subject: Custom 404 Page Reply with quote

I've installed Drupal several times and the .htaccess includes an ErrorDocument directive which has always worked on my Linux based servers in the past.

It looks like
Code:

# Make Drupal handle any 404 errors.
ErrorDocument 404 /index.php


It isn't working on this windows server though. I get an 83 byte 404 message.

I'm running the newest Zend Server CE (version 4.0.6) with PHP 5.2. I have "AllowOverride All" set in httpd.conf and httpd-vhosts.conf.

I've tried moving the ErrorDocument directive to httpd.conf with no effect.

Please suggest ideas of what else I can check.
Back to top
halstead



Joined: 08 Dec 2009
Posts: 3
Location: Hillsboro Oregon USA

PostPosted: Tue 08 Dec '09 1:21    Post subject: Relevant Links Reply with quote

http://forums.zend.com/viewtopic.php?f=44&t=1826&p=9931&hilit=ErrorDocument#p9931

Maybe it can't be fixed?
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Tue 08 Dec '09 1:53    Post subject: Reply with quote

Well .. does the <Directory> have an AllowOverride of "FileInfo" or "All" configured in httpd.conf for the location?

If not I think it should error or at least make noise in the error log.

It shouldn't need that in httpd.conf tho ... so maybe it can't.
Back to top
halstead



Joined: 08 Dec 2009
Posts: 3
Location: Hillsboro Oregon USA

PostPosted: Tue 08 Dec '09 2:44    Post subject: AllowOverride All Reply with quote

I've switched all of the AllowOverride directives in all .conf files to All. No change in behavior.

I also switched from ZendServer CE to ZendServer with a 30 day trial license. No change.

I tried installing apache and php myself from the official websites. Custom 404s worked fine. But I want the acceleration from ZendOptimizer+
Back to top
Brian



Joined: 21 Oct 2005
Posts: 209
Location: Puyallup, WA USA

PostPosted: Fri 11 Dec '09 20:11    Post subject: Reply with quote

Have you tried putting this into the CONFIG file instead of an .htaccess file?
Back to top


Reply to topic   Topic: Custom 404 Page View previous topic :: View next topic
Post new topic   Forum Index -> Apache