From f234c4f23e924e38bf7d0e6739c2a2edee7adf7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 13 Jun 2023 16:31:31 +0200 Subject: phpLDAPadmin change configuration of webroot. --- manifests/phpldapadmin.pp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/manifests/phpldapadmin.pp b/manifests/phpldapadmin.pp index 50d47e8..8e2b5d5 100644 --- a/manifests/phpldapadmin.pp +++ b/manifests/phpldapadmin.pp @@ -11,9 +11,10 @@ class profiles::phpldapadmin ( include ::php_fpm nginx::resource::server { $nginx_server: - ipv6_enable => true, - ipv6_listen_options => '', - use_default_location => false, + ipv6_enable => true, + ipv6_listen_options => '', + www_root => '/usr/share/webapps/phpldapadmin', + index_files => ['index.php'], } class { 'phpldapadmin': @@ -24,7 +25,6 @@ class profiles::phpldapadmin ( php_fpm::nginx { 'phpldapadmin': server => $nginx_server, conf => { - www_root => '/usr/share/webapps/phpldapadmin', location_allow => [ '127.0.0.1', '::1', @@ -34,6 +34,7 @@ class profiles::phpldapadmin ( location_deny => [ 'all', ], + www_root => '/usr/share/webapps/phpldapadmin', }, } -- cgit v1.2.3