Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

subdirectories of localhost don't work

1 view
Skip to first unread message

Scott

unread,
Nov 16, 2009, 8:52:00 AM11/16/09
to
although localhost works this is on win32

Davide Bianchi

unread,
Nov 16, 2009, 9:21:40 AM11/16/09
to
On Nov 16, 2:52 pm, Scott <skaplan2...@yahoo.com> wrote:
> although localhost works this is on win32

Please specify what "don't work" means. What kind of error do you get,
how do you request them, what version of Apache...

Davide

Scott

unread,
Nov 16, 2009, 9:30:00 AM11/16/09
to
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

Davide Bianchi

unread,
Nov 16, 2009, 10:28:23 AM11/16/09
to
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?

Scott

unread,
Nov 16, 2009, 10:40:59 AM11/16/09
to

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

Swifty

unread,
Nov 16, 2009, 1:21:07 PM11/16/09
to

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

Scott

unread,
Nov 16, 2009, 1:48:08 PM11/16/09
to
On Mon, 16 Nov 2009 18:21:07 +0000, Swifty <steve....@gmail.com>
wrote:

Document root in httpd.conf is :/program files/apache
group/apache/htdocs but subdirectories of htdocs don't work

Scott

unread,
Nov 16, 2009, 1:52:12 PM11/16/09
to
On Mon, 16 Nov 2009 18:21:07 +0000, Swifty <steve....@gmail.com>
wrote:

>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

unread,
Nov 16, 2009, 1:56:53 PM11/16/09
to
On Mon, 16 Nov 2009 18:21:07 +0000, Swifty <steve....@gmail.com>
wrote:

>Scott wrote:

Also I notice there's no index.html file in htdocs so where's the "it
works!" page coming from?

Davide Bianchi

unread,
Nov 16, 2009, 2:16:34 PM11/16/09
to
On Nov 16, 7:56 pm, Scott <skaplan2...@yahoo.com> wrote:
>>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)


> 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

Swifty

unread,
Nov 16, 2009, 2:33:56 PM11/16/09
to
Scott wrote:
> Document root in httpd.conf is :/program files/apache
> group/apache/htdocs but subdirectories of htdocs don't work

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.

Scott

unread,
Nov 17, 2009, 12:22:21 AM11/17/09
to
Problem solved Apache version 2.x was the problem I reverted to 1.3
and everything works fine

"Álvaro G. Vicario"

unread,
Nov 17, 2009, 3:18:56 AM11/17/09
to
Scott escribi�:

> Problem solved Apache version 2.x was the problem I reverted to 1.3
> and everything works fine

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
--

Swifty

unread,
Nov 17, 2009, 6:43:36 AM11/17/09
to
Scott wrote:
> Problem solved Apache version 2.x was the problem I reverted to 1.3
> and everything works fine

Don't forget to revert to Windows 3.1 - that will fix all of your
Vista/Windows7 problems!

0 new messages