Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set a page as the default page in Plesk

Tags:

plesk

How can I set a page as a default page in Plesk. for example, when somebody requests www.mysite.com, it will automatically open www.mysite.com/Index.html

Thanks

like image 234
Hassan Mokdad Avatar asked Apr 22 '12 17:04

Hassan Mokdad


2 Answers

Found it, you need first to go to your Home Page in Plesk Panael, choose virtual directories, then choose your domain, then choose Directory Propertories

like image 56
Hassan Mokdad Avatar answered Sep 29 '22 08:09

Hassan Mokdad


Or to use Web.Config but the recommended way is to use from virtual directories

    <configuration>
       <system.webServer>
          <defaultDocument enabled="true">
             <files>
                <add value="home.html" />
             </files>
          </defaultDocument>
       </system.webServer>
    </configuration>

Apache is usually set to index.php or index.html

You may use .htaccess on linux servers and set the default page in Plesk website

DirectoryIndex index.php index.html site-down.php 
like image 40
kamtec1 Avatar answered Sep 29 '22 06:09

kamtec1