Default page while server move

  • Hi,


    I plan that I move our clients from old server to a new server.
    In meantime I would like to show on all domain the same message "We are moving... etc."
    But under the work on old server all other services will shutdown (postfix, ftp, mysql etc)


    Do you have any suggestions, how can I make this?


    Thank you!

    i-MSCP 1.5.3
    Plugins (latest version): ClamAV, CronJobs, DomainAutoApproval, LetsEncrypt, OpenDKIM, PanelRedirect, PhpSwitcher, PolicydSPF, Postgrey, RecaptchaPMA, RoundcubePlugins, SpamAssasin, WHMCS

  • @Dylan


    1. Disable any site


    Shell-Script
    1. # cd /etc/apache2/sites-available/# a2dissite *

    2. Create a new virtualhost: /etc/apache2/sites-available/moving.conf with the following


    Code
    1. <VirtualHost *:80>ServerAdmin webmaster@localhostDocumentRoot /var/www/moving<Directory />Options FollowSymLinksAllowOverride None</Directory><Directory /var/www/moving>Options Indexes FollowSymLinks MultiViewsAllowOverride NoneOrder allow,denyallow from all</Directory></VirtualHost>

    3. Create documentroot


    Shell-Script
    1. mkdir -p /var/www/moving

    4. Push your index.html page in the /var/www/moving directory
    5. Enable the new vhost and restart Apache2

    Shell-Script
    1. # a2ensite moving.conf
    2. # service apache2 restart

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206