This is a discussion on Re: I dunno, I would think that this should.. oh, I dunno.. work. within the Windows Web Servers forums, part of the Web Server and Related Forums category; tiger YAMATO wrote: > Okay, so I compile 1.3.27 in Cygwin. Okay, no biggie. Apache starts > just ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
tiger YAMATO wrote:
> Okay, so I compile 1.3.27 in Cygwin. Okay, no biggie. Apache starts > just fine.. however, when I try to actually CONNECT to my server, I > get 404s. I've spent 4 hours trying to figure it out.. I got nothing. > > error.log: > > [Thu Jun 26 12:27:04 2003] [error] [client 127.0.0.1] File does not > exist: d:/www/ > > Okay, seems simple enough to fix... except that d:/www/ DOES exist. > > apache.conf says: > > DocumentRoot "d:/www/" > <Directory "d:/www/"> > > I've tried it without the trailing slash, without the drive.. nothing. > What am I doing wrong? A directory is not a file - Apache needs to be told how to treat it. There are two options - either provide an index file, and tell Apache how to search for it, or enable directory listings. To use an index file, you need a DirectoryIndex command e.g. DirectoryIndex index.html and then you need to put a file with one of the names you specify in the directory. Apache will load the first file it finds from the list on the DirectoryIndex command. If you just want Apache to list the directory, then set the Index option on the directory e.g.: <Directory "d:/www"> Options Indexes </Directory> You also need to enable access to the directory, because the default Apache configuration is to locked down everything. These options inside the <Directory> block should work: Order allow,deny Allow from all Hope this helps! -- Jim Patterson Ottawa, Ont CANADA |
| Thread Tools | |
| Display Modes | |
|
|