File bareos-apache.conf of Package bareos
<VirtualHost *:80>
#uncomment the below, add your certificate/key files and replace :80 with :443
#SSLEngine on
#SSLCertificateFile <path to certificate>
#SSLCertificateKeyFile <path to key>
#Header always set Strict-Transport-Security "max-age=63072000"
#SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1 -TLSv1.2
#SSLHonorCipherOrder off
#SSLSessionTickets off
#uncomment and add the FQDN to this server if you use other virtual hosts
#ServerName <fqdn>
SetEnv "APPLICATION_ENV" "production"
DocumentRoot /usr/share/bareos-webui/public
DirectoryIndex index.php
<IfModule mod_proxy_fcgi.c>
<FilesMatch "\.php$">
SetHandler "proxy:unix:/run/php-fpm/bareos.sock|fcgi://Bareos"
</FilesMatch>
</IfModule>
<Directory /usr/share/bareos-webui/public>
Options FollowSymLinks
AllowOverride None
Require all granted
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
</Directory>
</VirtualHost>