Subject: | Problems with Multiline-Directives |
Date: | Wed, 03 Oct 2012 16:22:10 +0200 |
To: | bug-Apache-ConfigFile [...] rt.cpan.org |
From: | Jan Huschauer <Jan [...] Huschauer.de> |
Dear Nathan,
i like your ConfigFile very much.
But on a new server with Plesk as ISP-Software i get two problems:
Some include-files are enclosed with ' and your include-sub try to include
something like this: /etc/apache2/'/var/www/vhost/...conf'
The problem based on the line (~169)
$file = "$server_root/$file" if $file !~ m!^/! && $server_root;
I put the following line bevor:
$file = $1 if ($file =~ m/^'(.+)'$/);
The second problem are based on Plesk using multilines in the VirtualHost like
this:
<VirtualHost \
176.9.114.144:80 \
176.9.114.155:80 \
176.9.114.156:80 \
176.9.114.157:80 \
176.9.114.154:80 \
Show quoted text
>
I solved this on adding lines at line ~183:
} else {
while ($conf[$i] =~ s/\\$//) {
$conf[$i] .= $conf[$i+1];
splice @conf, $i+1, 1;
}
}
This code merge every multilines into one line.
Hope i could help a little bit.
--
Grüße,
Jan Huschauer
EDV-Dienstleistungen Schieräckerstr. 11 Tel: 0911-1305745
http://www.consult-n.de 90431 Nürnberg Fax: 0911-3237969
Einzelunternehmer, Ust.IdNr.: DE197960033