• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

vhost_ssl.conf in subdomain not included

F

FedericoS

Guest
I have Plesk 9.2.1 on Centos 5.2:

inside the conf folder of the subdomain I is the file that vhost.conf and vhost_ssl.conf, but in general file created httpd.include domain in both VirtualHost (both :80 that :443) is including the file vhost.conf .

Why?
 
Hi,

Try running the following command on:
/usr/local/psa/admin/sbin/websrvmng -v -a

It will re-create domains' apache configuration files (httpd.include ones) and reload apache to apply changes.
 
Hi,

I have already tried but in the both VirtualHost is included the file vhost.conf and the file vhost_ssl.conf is not considered ...
 
subdomain config file

Maybe this will help you ...

1.) edit the config-file of your subdomain: /srv/www/vhosts/<DOMAIN>.de/subdomains/svn/conf/vhost.conf
=> add this for example for SVN

############ SVN #################
<Location />
DAV svn
SVNPath /srv/repos/svn_<DOMAIN>
AuthType Basic
AuthName My Repository
AuthUserFile /srv/repos/svn_<DOMAIN>/passwdfile
Require valid-user
</Location>
#################################

2.) update PLESK-Webservermanager: /usr/local/psa/admin/sbin/websrvmng -u --vhost-name=<DOMAIN>.de
=> this will add your configuration to the MAIN-HTTP-INCLUDE-FILE of your MAINDOMAIN httpd.inlcude
for Port80 and Port 443 at the end of </VirtualHost> e.g. "INCLUDE /srv/www/vhosts/froggs.de/subdomains/svn/conf/vhost.conf"

3.) Restart you apache2: /etc/init.d/apache2 restart

... that's all ... ;o)
 
Hi,

tnks but I will also need vhost_ssl.conf, the problem is not for file vhost.conf but that in both virtual hosts :)80 and :443), at the time of regeneration httpd.include will be included in error the file vhost.conf

Regards

Federico
 
Needed so daemons don't clash

I also am running into this issue which is blocking us from being able to start daemons (using mod_wsgi) on both the SSL and non-SSL vhosts.

Dear plesk staff: PLEASE separate subdomain vhost.conf & vhost_ssl.conf files just like the main domain ones are!

Thanks,
Seth
 
I need it to

I need separate configuration to ssl and non-ssl subdomain too. Do you have a workaround to this issue?

Thanks,

Piero.
 
Back
Top