From 39e50398f9c2228be73642db221cea65137b3b02 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 30 Jun 2015 14:47:08 +0200 Subject: [PATCH] Add DirectoryIndex support Suggested by HF Wang --- .../templates/etc/httpd/conf/httpd.conf/WebAppVirtualHost/50Content | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/WebAppVirtualHost/50Content b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/WebAppVirtualHost/50Content index 00b60f3..3e54310 100644 --- a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/WebAppVirtualHost/50Content +++ b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/WebAppVirtualHost/50Content @@ -11,6 +11,7 @@ my $allow = $domain->prop('AllowHosts') || ''; my $preserve = $domain->prop('ProxyPreserveHost') || 'no'; my $keepalive = $domain->prop('ProxyNoKeepAlive') || 'no'; my $timeout = $domain->prop('Timeout') || ''; +my $index = $domain->prop('DirectoryIndex') || ''; my @alias = split /[,;]/, ($domain->prop('Alias') || ''); my @env = split(/[;,]/, ($domain->prop('SetEnv') || '')); my $auth = $domain->prop('Authentication') || 'none'; @@ -50,6 +51,10 @@ if ($timeout =~ m/^\d+$/){ $OUT .= " Timeout $timeout\n"; } +if ($index ne ''){ + $OUT .= " DirectoryIndex $index\n"; +} + foreach (@alias){ next unless $_ =~ m/^(\/\w+)=(\/.*)/; my ($al, $targ) = ($1, $2);