SquidGuard is a URL redirector used to use blacklists with the proxysoftware Squid. There are two big advantages to squidguard: it is fast and it is free.
Revision of Apache from Tue, 04/17/2012 - 09:25
Revisions allow you to track differences between multiple versions of your content, and revert back to older versions.
Installation
Download the latest version of the Apache web server. At the time of writing, the current version was 2.2.22.
cd /extra/src
wget http://apache.mirror.rafal.ca/httpd/httpd-2.2.22.tar.gz
tar zxf httpd-2.2.22.tar.gz
cd httpd-2.2.22In order to secure parts of our website, we'll enable mod_ssl. Compiling mod_rewrite is useful for rewriting URLs. Drupal, in particular, makes use of this.
./configure --enable-so --enable-ssl --enable-rewriteIf all configures correctly, make and install the binaries:
make
make installEdit /usr/local/apache2/conf/httpd.conf and change the user and group from daemon to nobody:
User nobody
Group nobodyConfirm that Apache starts up correctly, then stop it again:
/usr/local/apache2/bin/apachectl start
/usr/local/apache2/bin/apachectl stopAutomatic Startup
There's a number of different ways to get Apache to start automatically (rc.d/init.d script, rc.local, xinetd). We're going to use daemontools.
If you haven't already, install daemontools.
Create a directory for the Apache service:
mkdir -m 1755 /var/service/apache
cd /var/service/apacheCreate the run script and make it executable:
echo '#!/bin/sh' > run
echo 'exec 2>&1' >> run
echo 'exec /usr/local/apache2/bin/httpd -DNO_DETACH 2>&1' >> run
chmod 755 runOur log script comes from John Simpson's:
mkdir -m 755 log
cd log
wget http://qmail.jms1.net/scripts/service-any-log-run
mv service-any-log-run run
chmod 755 runFinally, add the service to daemontools by creating the symbolic link in /service
ln -s /var/service/apache /service/apacheConfirm that the service is running:
svstat /service/apache /service/apache/log- Log in to post comments