Re: [mod-security-users] DocumentRoot path
Brought to you by:
victorhora,
zimmerletw
|
From: Alex <al...@ss...> - 2005-04-14 00:33:14
|
On Wed, 2005-04-13 at 22:52 +0200, Julius Schwartzenberg wrote: > Hi, > I'm trying to chroot my Apache 2 server. > I've added this to my httpd.conf: > # mod_security stuff > SecChrootDir /chroot/apache >=20 > And I moved the directory /var/www to /chroot/apache/var/www >=20 > When I try to start Apache, I now get the following error message though: > Starting httpd daemon: /usr/sbin/apachectl start > Syntax error on line 357 of /etc/apache2/httpd.conf: > DocumentRoot must be a directory >=20 > Am I doing something wrong? I would expect I would only need to specify=20 > the path within the chroot environment. Do I need to specify the full=20 > path instead? >=20 > Thanks in advance, > Julius >=20 Just do : ln -s /chroot/apache/var/www /var/www It should be working after that Alex V |