Understood..and it works now.

Thanks.

Samit


bert wrote:
> On 25 Jan 2008, at 12:42, Samit wrote:
>>
>> localhost src # ls -al /web
>> drwxr-xr-x  3 root nobody 4096 Jan 25 11:39 .
>> drwxr-xr-x 19 root root   4096 Jan 25 00:43 ..
>> drwxr-xr-x  4 root nobody 4096 Jan 25 11:39 vhosts
>>
>> localhost src # ls -al / | grep web
>> drwxr-xr-x  3 root nobody      4096 Jan 25 11:39 web
>>
>> localhost src # cat /usr/local/apache2/conf httpd.conf
>>
>> Include /etc/apache/vhosts.d/*.*
>> </IfModule>
>> <IfModule peruser.c>
>> ~        ServerLimit 256
>> ~        MaxClients 256
>> ~        MinSpareProcessors 2
>> ~        MaxProcessors 20
>> MaxRequestsPerChild 1000
>> IdleTimeout 60
>> ExpireTimeout 300
>> Multiplexer nobody nobody
>> Multiplexer nobody nobody
>> Multiplexer nobody nobody
>> Multiplexer nobody nobody
>> Multiplexer nobody nobody
>> Multiplexer nobody nobody
>> Processor rustan nobody /web/vhosts/rustan.com.np/httpdocs
>> Processor prabinsh nobody /web/vhosts/prabinsh.com.np/httpdocs
> 
> Here you specify a chroot location,   /web/vhosts/prabinsh.com.np/ 
> httpdocs for prabinsh
> 
>> </IfModule>
>>
>>
>> cat /etc/apache/vhosts.d/prabinsh.com.np
>>
>> <VirtualHost 202.79.36.13:80>
>> ~        ServerAdmin [EMAIL PROTECTED]
>> ~        DocumentRoot  /web/vhosts/prabinsh.com.np/httpdocs
> 
> And here you specify the documentroot, which is relative to the  
> chroot, thus your document root is:
>   /web/vhosts/prabinsh.com.np/httpdocs/web/vhosts/prabinsh.com.np/ 
> httpdocs
> 
> Since you are chrooted to the dir you want, your webroot would be /
> 
>> ~        ServerName prabinsh.com.np
>> ~        ServerAlias www.prabinsh.com.np
>> <IfModule peruser.c>
>> ~                Processor prabinsh nobody
>> /web/vhosts/prabinsh.com.np/httpdocs
>> ~                ServerEnvironment prabinsh nobody
>> /web/vhosts/prabinsh.com.np/httpdocs
>> ~                MinSpareProcessors 2
>> ~                MaxProcessors 20
>> ~        </IfModule>
>> Include /usr/local/apache2/modules/vhosts_php
>> ErrorLog /web/vhosts/prabinsh.com.np/logs/error.log
>> CustomLog /web/vhosts/prabinsh.com.np/logs/access.log common
>> </VirtualHost>
>>
>>
>> Regards,
>> Samit
>>
>>
>> _______________________________________________
>> Peruser mailing list
>> [email protected]
>> http://www.telana.com/mailman/listinfo/peruser
> 
> _______________________________________________
> Peruser mailing list
> [email protected]
> http://www.telana.com/mailman/listinfo/peruser
> 
> 
_______________________________________________
Peruser mailing list
[email protected]
http://www.telana.com/mailman/listinfo/peruser

Reply via email to