To help you set up your own Afterburner site, let's look in detail at two sample setups. We'll use FreeBSD, since that's the best OS for serious web serving. The first sample will be for a plain old single-domain site. Most of these steps require you to be root.
cp afterburner dolog /usr/local/sbin
mkdir /usr/local/www
mkdir /usr/local/www/data
Your config file and log files will go in /usr/local/www.
When you get a license file, it goes there too.
/usr/local/etc/rc.d
.
We have included a sample startup script you can use, so copy it to
that directory:
cp afterburner.sh /usr/local/etc/rc.d
The script tells Afterburner to get the rest of its configuration
from /usr/local/www/afterburner_config.
cp afterburner_config /usr/local/www
The sample config file just specifies a PID file - for saving the process
i.d. that Afterburner is running under, so that it can be more easily
restarted.
cp 500.afterburner-rotate /etc/periodic/daily
And that's it. Reboot and you should be up and running.
Now, what if you want to serve multiple domains? With HTTP/1.1 you can do "name based" virtual domains, which are very easy to set up.
vhost
" option to
your afterburner_config file.
lrwxr-xr-x 1 root www 13 Nov 15 11:32 192.100.66.6@ -> gate.acme.com
lrwxr-xr-x 1 root www 13 Nov 15 11:32 63.197.234.19@ -> gate.acme.com
drwxrwxr-x 3 root www 512 Nov 15 12:15 gate.acme.com/
drwxrwxr-x 2 root www 512 Nov 15 12:04 www.axilla.com/
drwxrwxr-x 2 root www 512 Nov 15 12:16 www.cloaca.com/
drwxrwxr-x 2 root www 512 Nov 15 12:04 www.foetid.com/
drwxrwxr-x 2 root www 512 Nov 15 12:04 www.lirpa.com/
drwxrwxr-x 2 root www 512 Nov 15 12:04 www.maxnix.com/
drwxrwxr-x 2 root www 512 Nov 15 12:04 www.phoon.com/
drwxrwxr-x 2 root www 512 Nov 15 12:04 www.setuid.com/
drwxrwxr-x 2 root www 512 Nov 15 12:04 www.tranya.com/
The server's "real" name is gate.acme.com, and I added symbolic links
for its two IP numbers.
In addition there are directories for all the virtual hosts I'm serving.
ACME Labs Webmaster <webmaster@acme.com>