1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

How do I change the default page?

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by Shawn M, May 19, 2010.

  1. Shawn M

    Shawn M Basic Pleskian

    22
     
    Joined:
    Oct 16, 2009
    Messages:
    79
    Likes Received:
    0
    Is there a way to change the default page for when I disable a domain do a backup?
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Default Plesk page you can find here - /var/www/vhosts/default/htdocs/
     
  3. akox

    akox New Pleskian

    22
    57%
    Joined:
    Jun 8, 2006
    Messages:
    16
    Likes Received:
    0
    A quick work around to do this would be to create the file
    /var/www/vhosts/default/htdocs/index.php

    with this content:

    <?
    if ( strpos($_SERVER['SERVER_NAME'],"XXXXXXXXXX") !== false ) {
    header( 'Location: /index.html');
    } else {
    header( 'Location: /disabled.html');
    }
    ?>

    (replace XXXXXXXXX with your domain name)

    then create the file /var/www/vhosts/default/htdocs/disabled.html and put anything you like.

    Aris
     
Loading...