Apache Start Hangs during Reboot of a KVM Virtual Server

Problem: Apache needs very long to start on a virtual server running on a KVM/QEMU virtual maschine. Solution: Apache needs a RNG (random number generator) for startup, probably because of TLS. A pure virtual maschine has no RNG device per default. If you add an RNG device to the virtual maschine configuration, apache startup is …

Continue reading ‘Apache Start Hangs during Reboot of a KVM Virtual Server’ »

Apache Authentication by IP and Password at the Same Time

If you like to restrict access to a directory on your Apache web server to users from a fixed IP range without password, and the rest of the world with password authentication the httpd.conf section can look like this: <Directory “/var/www/htdocs/protected”> AuthType Basic   AuthName “Protected Area”   AuthUserFile /etc/apache/passwd   Require valid-user   Order …

Continue reading ‘Apache Authentication by IP and Password at the Same Time’ »