Web Servers on Windows - "DocumentRoot does not exist" and 404 errors not working in Apache

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Windows > October 2004 > "DocumentRoot does not exist" and 404 errors not working in Apache





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author "DocumentRoot does not exist" and 404 errors not working in Apache
Andrew Crowe

2004-10-15, 9:09 pm

Hi guys,

I'm having trouble with an installation of Apache 2.0.52 on Win2000 server.

I have 2 virtual hosts set up, one is just a proxy to a Plone website
which works fine and another is a php website.

on startup the error
Warning: DocumentRoot [D:/Inetpub/wwwroot/website/www] does not exist
is added to the error log, and while all existing pages are accessable
and run php fine any 404 errors show up as

"*Forbidden*

You don't have permission to access /nofile on this server.

Additionally, a 403 Forbidden error was encountered while trying to use
an ErrorDocument to handle the request."

I'm trying to set up a custom 404 page but I get 403 whether I've
specified an ErrorDocument 404 in the <VirtualHost> block or not. (there
is no custom ErrorDocuments set in the root)

Also if I change the DocumentRoot from "D:/Inetpub/wwwroot/website/www"
to "D:\Inetpub\wwwroot\website\www" or
"D:\\Inetpub\\wwwroot\\website\\www" then all pages generate a 403 error
not just missing pages.

Does anyone know how I can fix this so that 404 errors are sent to the
browser and that DocumentRoot does not exist error isn't added to the
error log?


Thanks
Andrew
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com