Re: [Nolug] php scripts virtual hosts

From: Petri Laihonen <pietu_at_weblizards.net>
Date: Mon, 8 Mar 2004 18:20:37 -0600 (CST)
Message-ID: <2890.68.14.52.165.1078791637.squirrel@secure.weblizards.net>

> On Mon, 2004-03-08 at 18:02, -ray wrote:
>> On Mon, 8 Mar 2004, James Scott wrote:
>>
>> > I have done tests with scripts that are seemingly professionally
>> > developed and as soon as I get to the point where they say "go to the
>> > URL" I get the 404 error file is not found on this server.
>> >
>> > I may not have it straight how to manipulate the file structure in
>> > "docroot" directories to make sure they are visible.
>>
>> 404 error probably has little to do with PHP. Must be an apache setup
>> problem. Check your apache error_log, probably in /var/log/httpd. See
>> where apache is looking for the file, compared to where you think it
>> should be looking.
>>
>> ray
> Thanks Ray, Here are the relevant entries from the log.
> I really do not understand the first one and it is probably the core
> issue. I can see that index.php is defined in conf.d.
> [Mon Mar 08 16:27:56 2004] [error] [client 68.11.44.133] Directory index
> forbidden by rule: /var/www/html/
> [Mon Mar 08 16:32:36 2004] [error] [client 68.11.44.133] File does not
> exist: /var/www/html/admin
> [Mon Mar 08 16:50:05 2004] [error] [client 68.11.44.133] Directory index
> forbidden by rule: /var/www/html/
> script not found or unable to stat
> script not found or unable to stat
> [Mon Mar 08 17:31:19 2004] [error] [client 68.11.44.133] File does not
> exist: /var/www/html/new_downloads
> [Mon Mar 08 17:31:57 2004] [error] [client 68.11.44.133] File does not
> exist: /var/www/html/new_downloads
>
What is the file extension for your index file?

By default apache looks for index.html and some other which I don't
remember out of my head. I always add coule of others like index.php,
index.shtml index.xyz.....

These can be set in main .conf file or per virtual domain container.

Petri

___________________
Nolug mailing list
nolug@nolug.org
Received on 03/08/04

This archive was generated by hypermail 2.2.0 : 12/19/08 EST