summaryrefslogtreecommitdiff
path: root/index.fpl
blob: a7d41b4e49cc86ceb492b148d8e3e5e3f2e809c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl

use strict;
use warnings;

use Xerl;

use FCGI;
use Socket;
use Sys::Hostname;

my $host = hostname();
my $config = -e "config-$host.txt" ?  "config-$host.txt" : 'config.txt';

while (FCGI::accept >= 0) {
	my Xerl $xerl = Xerl->new( config => $config );
	$xerl->run();
}