summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-06-13 16:31:31 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-06-13 16:36:50 +0200
commitf234c4f23e924e38bf7d0e6739c2a2edee7adf7f (patch)
tree55755fb894d78f20c3e272f338ed1124bbd433e3
parentFix spelling. (diff)
downloadprofiles-f234c4f23e924e38bf7d0e6739c2a2edee7adf7f.tar.gz
profiles-f234c4f23e924e38bf7d0e6739c2a2edee7adf7f.tar.xz
phpLDAPadmin change configuration of webroot.
-rw-r--r--manifests/phpldapadmin.pp9
1 files 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',
},
}