• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

Subdomain vhosts.conf ignored

R

Ron Wheeler

Guest
I am trying to get Subversion working under DAV and I am following a tutorial on how to install svn under Plesk
http://alexle.net/archives/138

I have done everything but it does not work.

It appears that the custom subdomain settings that I have put in the file
/var/www/vhosts/xxx.com/subdomains/svn/conf/vhost.conf
are being ignored.
When I point the browser at the subdomain it shows up the default unconfigured page.
I ran
/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=svn.xxx.com

But I can not see where any configuration file has been changed to include my vhost.conf file.

Where is the subdomain's vhost.conf file included in the apache conf file structure?
 
You should check in:

/path/to/vhosts/xxx.com/conf/httpd.include


In that file you are looking for something along the lines of:

Include /path/to/vhosts/xxx.com/subdomains/thesubdomain/conf/vhost.conf


If you don't see it, it did not regenerate the domain correctly.


After looking at the command you executed, try it again without the svn. subdomain prefix. You need to reconfigure the domain, not the subdomain.
 
I figured it out. Two errors.

1) I had an "s" on vhost in vhost.conf.
2) /usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=svn.xxx.com
should be
/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=xxx.com

This caused httpd.include to change.
Did not fix my problem but at least I can see where the configuration is setup.

I am not an expert on DAV yet but I guess that is the next step.
 
Did you find a resolution to the problem of including subdomain vhost.conf files?

We are having the exact same problem here - websrvmng is not putting the include for the subdomain's vhost.conf file in the http.include file for the main domain.

www.maindom.com
sub1.maindom.com
sub2.maindom.com
sub3.maindom.com

The vhost is in:
/home/httpd/vhosts/maindom.com/subdomains/sub1/conf/vhost.conf

It's not getting included after running:
/usr/local/psa/admin/sbin websrvmng -u --vhost-name=maindom.com
 
Yes, reconfig'ed all even, however I found the reason: Plesk 7.0.x does not support the vhost.conf files for subdomains.

Solution: we setup the 3 subdomains as separate hosted domains names.

It serves the purpose, uses up 3 in the license though (get an unlimited license and it does not matter).
 
In the future you should ask your question in the appropriate forum as asking about 7.0 in an 8.1 forum is pretty pointless.
 
I was not aware that it was a version specific issue we were having, thank you.
 
Back
Top