[mod-security-users] Re: DocumentRoot path
Brought to you by:
victorhora,
zimmerletw
|
From: Julius S. <us...@zg...> - 2005-04-14 08:52:10
|
Alex wrote: > 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 >> >>And I moved the directory /var/www to /chroot/apache/var/www >> >>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 >> >>Am I doing something wrong? I would expect I would only need to specify >>the path within the chroot environment. Do I need to specify the full >>path instead? >> >>Thanks in advance, >>Julius >> > > > Just do : ln -s /chroot/apache/var/www /var/www > > It should be working after that > > Alex V I understand. Is there any way to check then if it really is chrooted? This also seems to be a work-around. Is this known problem with mod_security? Julius |