diff --git a/libinstall/functions b/libinstall/functions index 649a3f3fd77..b7507ac19e4 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__