I have been looking into neater ways to accomplish the redirect. CentOS 7.1 has a neat one that doesn’t exist on Debian or Ubuntu.
sed -i -e "s|DirectoryIndex index.html|DirectoryIndex /fog/index.php index.html|g" /etc/httpd/conf/httpd.conf
For previous builds on both Debian and Ubuntu, I would do:
mv -u /var/www/html/index.html /var/www/html/index.html.old
Which is just a failover option really … but there is definitely something wrong with what I spotted up there. I’ve recreated the above problems twice on two fresh Debian 8.2 installs and build 4728. I’m re-organizing and re-writing my scripts/steps for server installation then FOG installation; I’ll post them sometime soon.
Your option to:
vi /var/www/html/index.php
<?php header('Location: http://x.x.x.x/fog/management/index.php'); ?>
die();
… should work yes, but it hard-codes the ip address. I hate hard-coded paths. My job in rc.local could certainly take care of that, but I hate hard-coded paths.