Include Statement not entered in apache conf for secure sites

rligg

Well-Known Member
Sep 16, 2003
275
0
166
Lately Cpanel is not inserting

Include "/usr/local/apache/conf/userdata/*.conf"
Include "/usr/local/apache/conf/userdata/ssl/2/*.conf"

in to the 443 Virtual Hst Container for a domain. It inserts those lines for the port 80 container though.

How do I fix this? I have had to manually enter these lines in, each time I install a cert for a client.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
79
458
cPanel Access Level
Root Administrator
Lately Cpanel is not inserting

Include "/usr/local/apache/conf/userdata/*.conf"
Include "/usr/local/apache/conf/userdata/ssl/2/*.conf"

in to the 443 Virtual Hst Container for a domain. It inserts those lines for the port 80 container though.

How do I fix this? I have had to manually enter these lines in, each time I install a cert for a client.
What is your full cPanel version number?
 

rligg

Well-Known Member
Sep 16, 2003
275
0
166
WHM 11.23.2 cPanel 11.23.4-S26138

Let me ask, does there have to be a file in /userdata/ssl/ before you install a certificate?
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
79
458
cPanel Access Level
Root Administrator
WHM 11.23.2 cPanel 11.23.4-S26138

Let me ask, does there have to be a file in /userdata/ssl/ before you install a certificate?
If no files exist in userdata/ssl, then no Include statements will be added to the VirtualHost.
 

rligg

Well-Known Member
Sep 16, 2003
275
0
166
Thanks. SO may I ask why does the include file have a path for:

Include "/usr/local/apache/conf/userdata/*.conf"

What is the point of this line?

I thought I could just put universal VHOST directives for domains(ssl and non ssl) in this area and they would be added to the conf. I assume I am incorrect.