New Default Holding Page

Discussion in 'General' started by mphayesuk, Apr 6, 2006.

  1. mphayesuk

    mphayesuk New Member

    Ok, when you add a new domain in the control panel, a script runs and copies the standard index pages into the new web site folders.

    If I change the default web page and add in graphics and maybe even a framed page (so there is more than one page) I presume I will need to change the script in some way so that it copies all the files needed to run the new default holding page.

    1) where is the script
    2) is there a specific part of the script I will need to change i.e. will it be clear which parts I need to edit.

    Thanks
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    /root/ispconfig/scripts/lib/config.lib.php

    The function is:

    make_docroot(.......);
     
  3. rbartz

    rbartz Member

    If you just want to replace the standard index page (or error pages) with your own... Look in "/root/ispconfig/isp/". There you will find the standard index and error files and so on in each of the languages: for example, "user_standard_index.html_de" and "standard_index.html_de".

    It would seem easy enough to save a backup and replace them with your own page. Standard graphic and other content could be on any site and referenced with full urls: <img src="http://myserver.com/images/...">. For other than the standard pages you would have to change the script, of course.

    A cool feature request might be for the site install script to copy all of the contents, with permissions (CGI!), from a "site skeleton directory", say /root/skeleton IF the directory exists. The site install script could do this after the basic site install and overwrite any files that it installed with the ones if finds there, chowning them appropriately. That way a host could easily set up a "standard site" in his own language and with his own stuff and it wouldn't get overwritten on the next updates.

    Richard
     
  4. falko

    falko Super Moderator ISPConfig Developer

    You can create custom standard index pages through the ISPConfig web interface.
     
  5. falko

    falko Super Moderator ISPConfig Developer

    http://www.howtoforge.com/forums/showpost.php?p=22640&postcount=2
     
  6. dayjahone

    dayjahone Member

    I set up the initial index page in the client section, but how do I modify the error pages?
     
    Last edited: Jun 18, 2007
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Enable individual error pages in the settings of the website and then fill in the content of the error page files on the options tab.
     
  8. dayjahone

    dayjahone Member

    that's what I have been doing; however, all of the sites have the same error pages. I was wondering if there is a way to change the defaults.
     
  9. falko

    falko Super Moderator ISPConfig Developer

    You can specify individual error pages on the Options tab of each web site in ISPconfig (if individual error pages are enabled on the Basis tab).
     
  10. dayjahone

    dayjahone Member

    Right. Is there a way to make particular error pages the default when sites are created?
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    You may change the default error pages in /root/ispconfig/isp/
     
  12. dayjahone

    dayjahone Member

    And I can modify the sharedip and default index page here as well?
     
  13. till

    till Super Moderator Staff Member ISPConfig Developer

    The default index pages, yes. the sharedip page is in /home/sharedip if i remember correctly.

    Make sure that you save the modified templates in a safe place as you will have to copy them back after a ispconfig update.
     
  14. falko

    falko Super Moderator ISPConfig Developer

Share This Page