2. S F D 2012 @ HUS
Securing an Apache Web Server using
Chroot
Nguyễn Năng Thắng
Fedora Ambassador Vietnam
HN Community Space, HanoiLUG, Ubuntu-vn
thangnguyennang1988 [at] gmail [dot] com
This presentation is licensed under a Creative Commons 2
Attribution-ShareAlike (CC-BY-SA) 3.0 license.
8. Objectives
Building a chroot environment
Securing an Apache Web Server using chroot
Requirements
Server: Apache Web Server
Server OS: CentOS-5
Jail directory: chroot
8
9. TODO
Step1. Create a jail directory
Step2. Install Apache
Step3. Install mod_chroot
Step4. Configure Apache mod_chroot
Step5. Disable SELinux
Step6. Patch up /etc/init.d/httpd
Step7. Start chrooted httpd
9
14. Install mod_chroot
The mod_chroot project
Download source code from the Internet
Untar the source code
Using apxs to compile and install the source
code
14