Change domain in Plesk from using default/htdocs folder

Posted on 2011-05-04
Medium Priority
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/mydomain.com/httpdocs 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 mydomain.com (well actually server.mydomain.com) so maybe that's got something to do with it.

Question by:groovyjon
  • 2
LVL 51

Expert Comment

by:Steve Bink
ID: 35695775
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

ID: 35695942
Will renaming the server have any other implications? Or is it just an arbitrary internal name?
LVL 51

Accepted Solution

Steve Bink earned 1000 total points
ID: 35705095
>>> 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

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
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…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month14 days, 12 hours left to enroll

839 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