View Single Post
  #1  
Old 28th October 2010, 19:43
SamTzu SamTzu is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Helsinki
Posts: 429
Thanks: 33
Thanked 55 Times in 38 Posts
Send a message via Skype™ to SamTzu
Lightbulb Easy way to change the default index.html file per site.

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

Quote:
// 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.
__________________

Sami Mattila
Internet-Content

Telephone:
00358942833310
Email: firstname.lastname@internet-content.org
Shop: http://shop.internet-content.net
Site: http://www.internet-content.net
Blog: http://www.internet-content.net/en/blog
FB: https://www.facebook.com/internetcontent

Reply With Quote
Sponsored Links