Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've just upgraded a website from Plesk-9 (Ubuntu 8) to Plesk-11 (CentOS 6.3).

The Plesk-11 server was created with a specific subdomain "sub.example.com", this also became the default webspace. Then the old site was migrated using the migration manager, with the same domain "sub.example.com".

When accessing sub.example.com from a browser or an external server, everything works fine; files are being served from "/var/www/vhosts/example.com/subdomains/sub/httpdocs".

But when the site itself links internally (from PHP running on the same server) to sub.example.com, file try to be hosted from "var/www/html" instead; the default page. Same if I try to use wget from SSH on the Plesk-11 server.

How do I fix it so even internal calls to "sub.example.com" go to the directory I want?

share|improve this question
    
How the internal like would normally look like at your site? Is it relative file path? absolute file path? full qualified URL? –  Sergey L Jan 10 '13 at 18:58

2 Answers 2

Try to reconfigure the website using the following utility:

/usr/local/psa/admin/bin/httpdmng --reconfigure-domain domain_name

And check after this, this will fix the issue.

share|improve this answer
up vote 0 down vote accepted

Found a solution myself; removing the "sub.example.com" entry from /etc/hosts fixes it.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.