Please specify what "don't work" means. What kind of error do you get,
how do you request them, what version of Apache...
Davide
And in the error_log what is reported? You sure that the DocumentRoot
of your server is pointing to the correct directory on your system?
If I point my browser to localhost get the "it works!" page it's only
subdirectories of the document root that get me a 404 error page could
not be found There's no errors in the error log
It still sounds as though there is a discrepancy between what *you*
think is your document root directory, and what apache knows is its
document root directory.
If you create a file doesntwork.html in your root directory, then fetch
http://127.0.0.1/doesntwork.html from your server, what happens?
In a standard apache install, the document_root will be something like
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs (if you
installed 2.2.x)
--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk
Document root in httpd.conf is :/program files/apache
group/apache/htdocs but subdirectories of htdocs don't work
>Scott wrote:
>> On Mon, 16 Nov 2009 07:28:23 -0800 (PST), Davide Bianchi
>> <davidey...@gmail.com> wrote:
>>
>>> On Nov 16, 3:30 pm, Scott <skaplan2...@yahoo.com> wrote:
>>>> I get error 404 page could not be found it happens on all
>>>> different versions of win32 after uninstalling and
>>>> reinstalling apache using the same old httpd.conf
>>> And in the error_log what is reported? You sure that the DocumentRoot
>>> of your server is pointing to the correct directory on your system?
>>
>> If I point my browser to localhost get the "it works!" page it's only
>> subdirectories of the document root that get me a 404 error page could
>> not be found There's no errors in the error log
>
>It still sounds as though there is a discrepancy between what *you*
>think is your document root directory, and what apache knows is its
>document root directory.
>
>If you create a file doesntwork.html in your root directory, then fetch
>http://127.0.0.1/doesntwork.html from your server, what happens?
What happens is I get a 404 page not found error
>Scott wrote:
Also I notice there's no index.html file in htdocs so where's the "it
works!" page coming from?
> Also I notice there's no index.html file in htdocs so where's the "it works!" page coming from?
You tell us... Evidently you are not looking at the right directory.
Davide
Unless that's a typo, that doesn't stand a chance of working. Since
there is a space inside "program files" the whole file/path needs to be
enclosed in double quotes. Show us your entire DocumentRoot line. I'll
show you mine:
DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
(that is all from one line).
My guess is that apache is ignoring your DocumentRoot specification, and
using something else entirely.
You could scan your system for "index.html" files - one of them will be
in your apache's documentroot.
To sum up... You were using Apache 1.3, you upgraded to Apache 2.2, you
tried to keep the same configuration file and it didn't work. Not
surprising, actually :)
--
-- http://alvaro.es - �lvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programaci�n web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
Don't forget to revert to Windows 3.1 - that will fix all of your
Vista/Windows7 problems!