[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] httpd.conf problem



----- Original Message -----
From: Gurpreet Singh <gp@xxxxxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Saturday, November 10, 2001 10:47 AM
Subject: [cobalt-users] httpd.conf problem


> Hello,
>
> When we setup a site on a Cobalt server, it does not show the index.html
> loaded by the client at times, and instead it shows the Placeholder page
> put in by Cobalt.
>
> On checking the path where we FTP'ed the files we found that the files
> were FTP'd into '/home/sites/site12/users/<username>/web, whereas the
> httpd.conf file in /etc/httpd/conf/ has Document Root as
> '/home/sites/site12/web'. On changing the Document Root to
> '/home/sites/site12/users/itcog/web', and restarting httpd, the site
> loaded by the client started displaying.
>
> The part of the httpd.conf which we are referring to is shown below -->
>
> <VirtualHost 216.109.76.9>
> ServerName www.litco.org
> ServerAlias litco.org
> ServerAdmin site12
> #DocumentRoot /home/sites/site12/web
> DocumentRoot /home/sites/site12/users/itcog/web
> RewriteEngine on
> RewriteCond %{HTTP_HOST}                !^216.109.76.9(:80)?$
> RewriteCond %{HTTP_HOST}                !^www.litco.org(:80)?$
> RewriteRule ^/(.*)                      http://www.litco.org/$1 [L,R]
> RewriteOptions inherit
> AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site12/users/$1/web/$3
> AliasMatch ^/users/([^/]+)(/(.*))? /home/sites/site12/users/$1/web/$3
> </VirtualHost>
>
> Why is Cobalt behaving like this ? What is the solution ?
>
> Thanks,
>
> --
>
> Gurpreet Singh

Hi there,
It's pretty straight forward. you haven't read the docs that come with your
RaQ.
Otherwise you would have known that what is written into your /etc/passwd
file refers to the home directory as every single user. However in order to
get set to the correct DocumentRoot directory you need to specifiy "/web" as
initial directory when login as website administrator.

One way would be to modify your proftpd.conf file but then it will be
modified back again everytime you use the GUI ( unless you alsoi modify the
FTP.pm perl module ) or otherwise modify the User.pm module, but then you
will not have a difference between normal users and website administrator
any more.
Any how please read the booklet from Cobalt first because this was a
question to which you could have answered yourself :-))