From 00847a50a3cd7291407adbfde84619737074d1a4 Mon Sep 17 00:00:00 2001 From: Eric Coquard Date: Wed, 11 Dec 2019 09:41:06 +0100 Subject: [PATCH] modify the libinstall/functions file for APIv2 --- libinstall/functions | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/libinstall/functions b/libinstall/functions index c1ec4d8ca75..d5e12ea9cda 100755 --- a/libinstall/functions +++ b/libinstall/functions @@ -1279,11 +1279,16 @@ prepare_apache_config() { # Prepare apache config ${CAT} << __EOT__ > $directory/centreon.apache.conf +Alias /centreon/api $INSTALL_DIR_CENTREON Alias /centreon $INSTALL_DIR_CENTREON/www/ - + ProxyPassMatch fcgi://127.0.0.1:9042${INSTALL_DIR_CENTREON}/www/\$1 + + + ProxyPassMatch fcgi://127.0.0.1:9042${INSTALL_DIR_CENTREON}/api/index.php/\$1 + ProxyTimeout 300 @@ -1300,6 +1305,19 @@ ProxyTimeout 300 AddType text/plain hbs + + Options Indexes + AllowOverride all + Order allow,deny + Allow from all + Require all granted + + php_admin_value engine Off + + + AddType text/plain hbs + + RedirectMatch ^/$ /centreon __EOT__