• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

httpd.include contains wrong data

iChain

New Pleskian
Hi Everyone,
I am using 10.4.4 Plesk (Update #32). By a mistake I've deleted one of my domains (sample.com) with all it's subdomains. In order to restore it I've done the following:
- I've create a new domain with the same domain name at plesk (sample.com)
- I've tried to restore it via domain's Backup Manager (I've got some backups of it). The restoring process haven't passed well - I've got some warnings like "Plesk wasn't able to restore the domain 1%: name "sample.com" is already used in Panel domain ". After that all domain's structure and databases were restored, but some of the data that was in the domain's folder was missing.
- My final step was restoring all missing data from the server backup from my hoster. I've replaced the domain's folder with the one from the backup.

After these manipulations everything worked just fine, until Plesk hasn't overwritten it's configuration. So here is the problem - httpd.include file for the "sample.com" domain contains the wrong domain name. There is another domain name (this domain wasn't influenced by these actions) listed in this file instead of the "sample.com"

Here is one of the wrong strings from httpd.include:
DocumentRoot "/var/www/vhosts/wrong_domain.com/httpdocs
and it should be
DocumentRoot "/var/www/vhosts/sample.com/httpdocs

Same is for all "sample.com" subdomains. I've tried to edit httpd.include manually, and everything works just fine if I'll correct all wrong domain names to the proper ones, but Plesk overwrites this file after any changes. So I always get everything back...

Maybe there is some permanent way to edit this file? Or I've done something wrong?
I'll appreciate any advice from your side (however I'd prefer not to delete this domain one more time).

Thank you in advance!
 
Running below should rebuild ALL vhost configuration files for that domain name ..
/usr/local/psa/admin/sbin/httpdmng --reconfigure-domain [yourdomain.com]
 
creating virtual host

Hi,

Can you please help me, I am new to create virtual host

I am trying to create virtual host,

my entry in vhost.conf is


DocumentRoot /var/www/vhosts/testing.xxx.co.nz/httpdocs/web

<Directory /var/www/vhosts/testing.xxx.co.nz/httpdocs/web >
AllowOverride all
Order allow,deny
Allow from all
</Directory>




I run the command

/usr/local/psa/admin/bin/httpdmng --reconfigure-domain testing.xxx.co.nz

and restarted the apache by,

apache2ctl restart


but I get HTTP Error 500 when I try to access http://testing.xxx.co.nz



Is it the right way to create virual host?

I have many autogenerated *httpd.include files in the /var/www/vhosts/testing.xxx.co.nz/conf folder...

where can I find the httpd.conf file to check whether my vhost.conf is included or not?



Thanks in advance

-Ila
 
Last edited:
Back
Top