Re: [Nolug] php scripts virtual hosts

From: Petri Laihonen <pietu_at_weblizards.net>
Date: Mon, 8 Mar 2004 21:53:24 -0600 (CST)
Message-ID: <3611.68.14.52.165.1078804404.squirrel@secure.weblizards.net>

> On Mon, 2004-03-08 at 18:29, Joey Kelly wrote:
>> <snip>
>>
>> >
>> > 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
>>
>> At least part of that really looks like a permissions problem. What user
>> is
>> apache running under, and what user owns those files?
>>
>> I normally work out of my home directory, and tell apache to point any
>> virtual
>> hosts I have at some directory in /$user/public_html/
> Maybe this is it. I assumed apache would be running as apache and chown
> the files and directories apache. I just looked and one was root. I
> changed it to apache still doesn't work. I can't think no more. What
> should they be?
> The home directory thing would be cool but I opted for the virtual
> hosts. By the documentation it actually seemed just as easy. All you
> do is add couple of lines to the hosts file and set virtual container at
> the end of httpd.conf. Yeah sure.
>
> ___________________

The errors you are seeing in the logs, I've seen them in the cases where I
had incorrectly configured path to the website in my httpd.conf file OR
when I did not have all the correct index files listed in httpd.conf

Could you post the virtual host lines (container) from your httpd.conf and
equivalent directory structure of the site location on the server?

Are you using IP based or name based virtual hosting?
Is the machine you are hosting behind the firewall?

btw. With apache 2.x I started using separate .conf file for virtual
hosts. At the bottom of the actual httpd.conf, I'm just 'including' it.

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