PDA

View Full Version : Easy way to change the default index.html file per site.


SamTzu
28th October 2010, 19:43
This has to exist first...
/usr/local/ispconfig/server/conf-custom/index/standard_index.html
Thats the new Kickstart.php file.
Then small mod here...
/usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php

// copy the standard index page
exec("cp /usr/local/ispconfig/server/conf-custom/index/standard_index.html ".escapeshellcmd($data["new"]["document_root"])."/web/index.php");

I just changed the index.html to index.php at the end there...
And now all the new sites are created with a custom index.php file.