From 53a3a612a6f506578402099921bbd130d5791fe1 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 14 Dec 2018 16:34:09 +0200 Subject: adjusttments for centos7 --- index.cgi | 28 ++++++++++++++++++++++++++++ index.pl | 28 ---------------------------- xerl.conf | 6 +++--- 3 files changed, 31 insertions(+), 31 deletions(-) create mode 100755 index.cgi delete mode 100755 index.pl diff --git a/index.cgi b/index.cgi new file mode 100755 index 0000000..18fb0d4 --- /dev/null +++ b/index.cgi @@ -0,0 +1,28 @@ +#!/usr/local/bin/perl + +# Xerl (c) 2005-2011, 2013-2015, 2017-2018 by Paul Buetow +# +# E-Mail: xerl@dev.buetow.org WWW: http://xerl.buetow.org +# +# This is free software, you may use it and distribute it under the same +# terms as Perl itself. + +use strict; +use warnings; + +use v5.14.0; +use lib qw(.); + +use Xerl; + +use Socket; +use Sys::Hostname; + +my $host = hostname(); +my $config = + -e "xerldev.conf" + ? "xerldev.conf" + : ( -e "xerl-$host.conf" ? "xerl-$host.conf" : 'config.conf' ); + +my $xerl = Xerl->new( config => $config ); +$xerl->run(); diff --git a/index.pl b/index.pl deleted file mode 100755 index 18fb0d4..0000000 --- a/index.pl +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/local/bin/perl - -# Xerl (c) 2005-2011, 2013-2015, 2017-2018 by Paul Buetow -# -# E-Mail: xerl@dev.buetow.org WWW: http://xerl.buetow.org -# -# This is free software, you may use it and distribute it under the same -# terms as Perl itself. - -use strict; -use warnings; - -use v5.14.0; -use lib qw(.); - -use Xerl; - -use Socket; -use Sys::Hostname; - -my $host = hostname(); -my $config = - -e "xerldev.conf" - ? "xerldev.conf" - : ( -e "xerl-$host.conf" ? "xerl-$host.conf" : 'config.conf' ); - -my $xerl = Xerl->new( config => $config ); -$xerl->run(); diff --git a/xerl.conf b/xerl.conf index a310825..58fd7bf 100644 --- a/xerl.conf +++ b/xerl.conf @@ -1,5 +1,5 @@ #nocache=defined -cacheroot=/usr/local/www/xerlcache/ +cacheroot=/var//www/xerlcache/ ctype.asc=text/plain ctype.css=text/css ctype.jpg=image/jpg @@ -14,6 +14,6 @@ defaultproto=http defaultstyle=css3.css defaulttemplate=html5 hidesubhome=1 -hostroot=/usr/local/www/xerlhosts/branches/stable/hosts/ +hostroot=/var/www/xerlhosts/ 404=http://paul.buetow.org -curlpath=/usr/local/bin/curl +curlpath=/usr/bin/curl -- cgit v1.2.3