Hi,

I'm trying to make mod_cheroot work with apache2.

# mkdir -p /var/www/localhost/htdocs/var/run
# chown -R root.root /var/www/localhost/htdocs/var/run
# ln -s /var/www/localhost/htdocs/var/run/apache2.pid /var/run/apache2.pid



the main features of httpd.conf:

PidFile /var/run/apache2.pid
ChrootDir /var/www/localhost/htdocs
DocumentRoot /

<Directory />
    AllowOverride None
    Options MultiViews FollowSymLinks
#   <IfModule mod_access.c>
#   Order allow,deny
#   Allow from all
#   </IfModule>
    <Limit GET OPTIONS>
      Order allow,deny
      Allow from all
    </Limit>
    <LimitExcept GET OPTIONS>
      Order deny,allow
      Deny from all
    </LimitExcept>
</Directory>




/etc/apache2/modules.d/15_mod_chroot.conf:

<IfDefine CHROOT>
        LoadModule chroot_module modules/mod_chroot.so
</IfDefine>

<IfModule mod_chroot.c>
        # change this to the web root
        ChrootDir /var/www/localhost/htdocs
</IfModule>


/etc/conf.d/apache2

APACHE2_OPTS="-D USERDIR -D DEFAULT_VHOST -D PHP5 -D SSL -D SSL_DEFAULT_VHOST -D CHROOT"



After this chroot methot, apache2 starts, but pages cannot be shown. Time-out.
This happens, when -D CHROOT is added to /etc/conf.d/apache2


What's the problem? Maby somebody has working mod_chroot?
--
[email protected] mailing list

Reply via email to