virtual domain

In this second part you will learn about creating user accounts, SKEL directory and virtual hosting configuration under chrooted Apache jail.

{ 23 comments }

A chroot on Red Hat / CentOS / Fedora Linux operating changes the apparent disk root directory for the Apache process and its children. Once this is done attacker or other php / perl / python scripts cannot access or name files outside that directory. This is called a “chroot jail” for Apache. You should never ever run a web server without jail. There should be privilege separation between web server and rest of the system.

In this exclusive series, you will learn more about:

  • Securing an Apache 2 web server under Red Hat Enterprise Linux / CentOS Linux using mod_chroot
  • Virtual hosting configuration
  • Troubleshooting Chrooted Apache jail problem.

{ 44 comments }

Lighttpd logo

For various reason you might want to redirect all traffic coming to www.domain.com to domain.com or vise versa.

{ 7 comments }

Last time I wrote about setting up virtual hosting for Lighttpd web server. Naturally next step is to setup log rotating with logrotate which rotates, compresses log files. Our setup Our sample setup has total 6 log files: Default domain/IP log files: /var/log/lighttpd/access.log /var/log/lighttpd/error.log nixcraft.com virtual domain log files: /var/log/lighttpd/nixcraft.com/access.log /var/log/lighttpd/error.log theos.in virtual domain log […]

{ 15 comments }