How to chroot Apache on CentOS?
Posted
by
Jonathan Meyer
on Server Fault
See other posts from Server Fault
or by Jonathan Meyer
Published on 2011-03-25T22:06:55Z
Indexed on
2011/11/14
1:54 UTC
Read the original article
Hit count: 622
I have been advised by a sysadmin, to run Apache in a chroot jail, in order to prevent that an attacker could take control of server.
So my question is:
- What is the best method to chroot Apache/2.2.3 in RHEL/CentOS 5?, i only use the default modules that comes with Apache like mod_php and also mod_security.
I heard of mod_security SecChrootDir but i don't know if it would be suitable for my config, it says that it's recommended only for static file serving in the documentation.
Thank you!
© Server Fault or respective owner