is Plesk websrvmng writing the Include vhost.conf in httpd.include ?

kadoudal

Regular Pleskian
I just created a new subdomain 'mcs' w SSL support and I am surpised not to see the line :

Include /var/www/vhosts/ecoachingsport.com/subdomains/mcs/conf/vhost.conf

written at the end of the <VirtualHost> block in the httpd.include which is the complete responsability of the websrvmng

herefater is the block in httpd.include ( I am supposed not to modify it, but I need to add some specifics for this subsdomain... in /var/www/vhosts/ecoachingsport.com/subdomains/mcs/conf/vhost.conf )
they are not taken in account......

<VirtualHost 88.191.202.35:443>
ServerName mcs.ecoachingsport.com:443
..
DocumentRoot /var/www/vhosts/ecoachingsport.com/subdomains/mcs/httpdocs
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /opt/psa/var/certificates/cert-FTHP4F
<Directory /var/www/vhosts/ecoachingsport.com/subdomains/mcs/httpdocs>
SSLRequireSSL
Options -Includes -ExecCGI
</Directory>
</VirtualHost>

what am i supposed to do (right) when creating the sub-domain ?

thanks fyh
 
No, subdomains are not written with include, iti will be all settings in httpd.*
Only vhost.conf can be added as include where you place your own stuff.
 
not sure ... I have an existing svn subdomain, and it's clearly included when I created the subdomain...

<VirtualHost 88.191.222.45:443>
ServerName svn.ecoachingsport.com:443
...
DocumentRoot /var/www/vhosts/ecoachingsport.com/subdomains/svn/httpsdocs
..
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /opt/psa/var/certificates/cert-XXXXXX
<Directory /var/www/vhosts/ecoachingsport.com/subdomains/svn/httpsdocs>
SSLRequireSSL
Options +Includes +ExecCGI
</Directory>
Include /var/www/vhosts/ecoachingsport.com/subdomains/svn/conf/vhost.co$
</VirtualHost>

I deleted the mcs subdomain then recreated it , and it's included now ... I guess I made a mistake first time...
 
Back
Top