#
# Bareos WebUI Apache configuration file
#
# Environment Variable for Application Debugging
# Set to "development" to turn on debugging mode or
# "production" to turn off debugging mode.
SetEnv "APPLICATION_ENV" "production"
Alias /bareos-webui /var/www/localhost/htdocs/bareos-webui/public
Options FollowSymLinks
AllowOverride None
Order deny,allow
Require all granted
#
RewriteEngine on
RewriteBase /bareos-webui
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
SetHandler "proxy:unix:/var/run/php-fpm/www.sock|fcgi://localhost"
# Set it to handle the files
AddHandler application/x-httpd-php .php .php5 .phtml
AddHandler application/x-httpd-php-source .phps
DirectoryIndex index.php index.phtml