Gentoo Archives: gentoo-server

From: Donatas <info@×××××××××××××.net>
To: gentoo-server@l.g.o
Subject: [gentoo-server] apache chroot
Date: Mon, 28 Aug 2006 11:20:52
Message-Id: 44F2D1FF.5080405@it-sprendimai.net
1 Hi,
2
3 I'm trying to make mod_cheroot work with apache2.
4
5 # mkdir -p /var/www/localhost/htdocs/var/run
6 # chown -R root.root /var/www/localhost/htdocs/var/run
7 # ln -s /var/www/localhost/htdocs/var/run/apache2.pid /var/run/apache2.pid
8
9
10
11 the main features of httpd.conf:
12
13 PidFile /var/run/apache2.pid
14 ChrootDir /var/www/localhost/htdocs
15 DocumentRoot /
16
17 <Directory />
18 AllowOverride None
19 Options MultiViews FollowSymLinks
20 # <IfModule mod_access.c>
21 # Order allow,deny
22 # Allow from all
23 # </IfModule>
24 <Limit GET OPTIONS>
25 Order allow,deny
26 Allow from all
27 </Limit>
28 <LimitExcept GET OPTIONS>
29 Order deny,allow
30 Deny from all
31 </LimitExcept>
32 </Directory>
33
34
35
36
37 /etc/apache2/modules.d/15_mod_chroot.conf:
38
39 <IfDefine CHROOT>
40 LoadModule chroot_module modules/mod_chroot.so
41 </IfDefine>
42
43 <IfModule mod_chroot.c>
44 # change this to the web root
45 ChrootDir /var/www/localhost/htdocs
46 </IfModule>
47
48
49 /etc/conf.d/apache2
50
51 APACHE2_OPTS="-D USERDIR -D DEFAULT_VHOST -D PHP5 -D SSL -D
52 SSL_DEFAULT_VHOST -D CHROOT"
53
54
55
56 After this chroot methot, apache2 starts, but pages cannot be shown.
57 Time-out.
58 This happens, when -D CHROOT is added to /etc/conf.d/apache2
59
60
61 What's the problem? Maby somebody has working mod_chroot?
62 --
63 gentoo-server@g.o mailing list

Replies

Subject Author
Re: [gentoo-server] apache chroot Robert Welz <welz@×××××××××.de>
[gentoo-server] gcc 4.1.1 and glibc 2.4 on amd64 Tomek Lutelmowski <tomek@×××××.pl>