Change domain in Plesk from using default/htdocs folder

Posted on 2011-05-04
Last Modified: 2012-06-21
Just got a new linux server with Plesk 10.2 installed. For one particular domain, when I set it up in Plesk, it creates the folder /var/www/vhosts/ but the actual pages are being served from /var/www/vhosts/default/htdocs.

All other domains server their pages from the location I'd expect (i.e. the first example above).

How can I switch this domain to serve pages from the default/htdocs folder to the mydomain/httpdocs folder? I'm not sure why this is happening with this domain, but the server's hostname is also called (well actually so maybe that's got something to do with it.

Question by:groovyjon
    LVL 50

    Expert Comment

    by:Steve Bink
    This is happening because the server's name is the same as the domain.  You will need to either rename the server, or manually edit the conf files to remove the default site.  Editing the files may not even work for you because Plesk typically recreates them at will.

    Author Comment

    Will renaming the server have any other implications? Or is it just an arbitrary internal name?
    LVL 50

    Accepted Solution

    >>> Will renaming the server have any other implications?

    Possibly, depending on the software you have installed.  For example, Plesk uses the server name just as you have seen with this issue.  Other software could too.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
    Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now