maybe chmod 0755 'apache2/conf-available'
maybe chmod 0644 'apache2/conf-available/charset.conf'
maybe chmod 0644 'apache2/conf-available/custom-log.conf'
+maybe chmod 0644 'apache2/conf-available/icingaweb2.conf'
maybe chmod 0644 'apache2/conf-available/javascript-common.conf'
maybe chmod 0644 'apache2/conf-available/localized-error-pages.conf'
maybe chmod 0644 'apache2/conf-available/other-vhosts-access-log.conf'
maybe chmod 0644 'icinga2/zones.d/master/mail.conf'
maybe chmod 0644 'icinga2/zones.d/master/salt.conf'
maybe chmod 0644 'icinga2/zones.d/master/services.conf'
+maybe chgrp 'icingaweb2' 'icingaweb2'
+maybe chmod 2770 'icingaweb2'
+maybe chgrp 'icingaweb2' 'icingaweb2/modules'
+maybe chmod 2770 'icingaweb2/modules'
+maybe chmod 0755 'icingaweb2/modules/translation'
+maybe chmod 0644 'icingaweb2/modules/translation/config.ini'
maybe chmod 0755 'init'
maybe chmod 0755 'init.d'
maybe chmod 0644 'init.d/README'
--- /dev/null
+Alias /icingaweb2 "/usr/share/icingaweb2/public"
+
+<Directory "/usr/share/icingaweb2/public">
+ Options SymLinksIfOwnerMatch
+ AllowOverride None
+
+ SetEnv ICINGAWEB_CONFIGDIR "/etc/icingaweb2"
+
+ EnableSendfile Off
+
+ <IfModule mod_rewrite.c>
+ RewriteEngine on
+ RewriteBase /icingaweb2/
+ RewriteCond %{REQUEST_FILENAME} -s [OR]
+ RewriteCond %{REQUEST_FILENAME} -l [OR]
+ RewriteCond %{REQUEST_FILENAME} -d
+ RewriteRule ^.*$ - [NC,L]
+ RewriteRule ^.*$ index.php [NC,L]
+ </IfModule>
+
+ <IfModule !mod_rewrite.c>
+ DirectoryIndex error_norewrite.html
+ ErrorDocument 404 /error_norewrite.html
+ </IfModule>
+</Directory>