HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Tips/Tricks/Mods (http://www.howtoforge.com/forums/forumdisplay.php?f=29)
-   -   Easy way to change the default index.html file per site. (http://www.howtoforge.com/forums/showthread.php?t=49737)

SamTzu 28th October 2010 19:43

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.


All times are GMT +2. The time now is 21:31.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.