I am having a problem while customizing the template for httpd.conf generation for an SSL domain. Below are steps I am taking and the error message I am receiving.
1-[OK] - Create a new account in WHM for subdomain.domain.com with dedicated IP, visit the default page at http://subdomain.domain.com and http://IP.
2-[OK] - Customise a directive following instructions (say change the ServerAdmin email address).
After this step /var/cpanel/userdata/username/subdomain.domain.com is created and includes as its first line custom_vhost_template_ap2: /path/to/custom_templates/username/vhost.localCode:perl -MYAML::Syck -e 'my $hr = YAML::Syck::LoadFile($ARGV[0]);$hr->{$ARGV[1]} = $ARGV[2];YAML::Syck::DumpFile($ARGV[0],$hr);' /var/cpanel/userdata/username/subdomain.domain.com custom_vhost_template_ap2 /path/to/custom_templates/username/vhost.local
3-[OK] - Rebuild and check httpd.conf, the customization is applied correctly.
4-[OK] - Create an SSL certificate for subdomain.domain.com and install it. Check SSL installation by visiting https://subdomain.domain.com and https://IP:443/
5-[OK] - Make the same change as in step 2 but this time by copying ssl_vhost.default
After this step /var/cpanel/userdata/username/subdomain.domain.com_SSL is created and the first line of /var/cpanel/userdata/username/subdomain.domain.com is changed to custom_vhost_template_ap2: /path/to/custom_templates/username/ssl_vhost.localCode:perl -MYAML::Syck -e 'my $hr = YAML::Syck::LoadFile($ARGV[0]);$hr->{$ARGV[1]} = $ARGV[2];YAML::Syck::DumpFile($ARGV[0],$hr);' /var/cpanel/userdata/username/subdomain.domain.com custom_vhost_template_ap2 /path/to/custom_templates/username/ssl_vhost.local
6-[FAIL] - Rebuild httpd.conf
Rebuild fails with the error
SSLCertificateFile takes one argument, SSL Server Certificate file (`/path/to/file' - PEM or DER encoded)
because tested httpd.conf does not have paths to .crt and .key files, though these appear correctly in /var/cpanel/userdata/username/subdomain.domain.com_SSL.
Can you help? Thanks



LinkBack URL
About LinkBacks
Reply With Quote





