Problems set ssl

amoozesh98com

Verified User
Joined
Mar 8, 2015
Messages
18
hi
im install ssl to example.com domian and restart all services then open example account and crate subdomain then open the ssh type :
1- nano /usr/local/directadmin/data/users/amoozesh/httpd.conf
2 - enter
all subdomains install ssl! main domain

<VirtualHost ip:443 >
SSLEngine on
SSLCertificateFile /usr/local/directadmin/data/users/example/domains/example.com.cert
SSLCertificateKeyFile /usr/local/directadmin/data/users/example/domains/example.com.key
SSLCACertificateFile /usr/local/directadmin/data/users/example/domains/example.com.cacert

ServerName www.sub.example.com
ServerAlias www.sub.example.com sub.example.com
ServerAdmin [email protected]
DocumentRoot /home/example/domains/example.com/private_html/sub
UseCanonicalName OFF
<IfModule !mod_ruid2.c>
SuexecUserGroup example example
</IfModule>
CustomLog /var/log/httpd/domains/example.com.sub.bytes bytes
CustomLog /var/log/httpd/domains/example.com.sub.log combined
ErrorLog /var/log/httpd/domains/example.com.sub.error.log
<Directory /home/example/domains/example.com/private_html>
AllowOverride AuthConfig FileInfo Indexes Limit Options=Indexes,Includes,IncludesNOEXEC,MultiViews ,SymLinksIfOwnerMatch,FollowSymLinks,None
Options -ExecCGI
suPHP_Engine ON
suPHP_UserGroup example example
</Directory>
</VirtualHost>


sub.example.com i not install sll !

plz help for this problem

tnx
 
Hello,

If you installed a cert for example.com and the added a new subdomain later... the subdomain won't be added into SSl cert, unless you a have wildcard cert. You need to re-issue your cert to include all needed subdomains.
 
no i not use wildcard cert

To disable Install SSL On all sub-domains Created And those who new sub-domains Created What should I do ?

When making subdomain

These in httpd.conf user example.com Or Each user Put not
SSLEngine on
SSLCertificateFile /usr/local/directadmin/data/users/example/domains/example.com.cert
SSLCertificateKeyFile /usr/local/directadmin/data/users/example/domains/example.com.key
SSLCACertificateFile /usr/local/directadmin/data/users/example/domains/example.com.cacert


Put not the

SSLEngine on
SSLCertificateFile /usr/local/directadmin/data/users/example/domains/example.com.cert
SSLCertificateKeyFile /usr/local/directadmin/data/users/example/domains/example.com.key
SSLCACertificateFile /usr/local/directadmin/data/users/example/domains/example.com.cacert




I am sorry
I am an Iranian
And do not speak good English
I am sorry that I can not speak good English
Very very very very very thanks
 
I really don't know what you are asking.... so I do my best to guess it.

So if you have example.com with enabled SSL then every sub-domain added in Directadmin will also have SSL-directives in Apache for it. If your subdomains are missing those directives, then make sure you've got correct templates in:

/usr/local/directadmin/data/templates/virtual_host2_secure_sub.conf
/usr/local/directadmin/data/templates/custom/virtual_host2_secure_sub.conf

and rewrite configs if it's required

Code:
cd /usr/local/directadmin/custombuild/
./build update
./build rewrite_confs

If it's not your case then... provide more details on your issue... full configs, screen-shots, screen-cast, real domains names, access to directadmin in public or privately.
 
if you don't need SSL enabled for subdomains, you should add sub-domains as regular domains with its own public_html.
 
1. copy /usr/local/directadmin/data/templates/virtual_host2_secure_sub.conf to /usr/local/directadmin/data/templates/custom/virtual_host2_secure_sub.conf

2. and update /usr/local/directadmin/data/templates/custom/virtual_host2_secure_sub.conf to fit your needs.


3.
Code:
cd /usr/local/directadmin/custombuild/
./build update
./build rewrite_confs
 
whay update ? i not understand for update ? 2. and update /usr/local/directadmin/data/templates/custom/virtual_host2_secure_sub.conf to fit your needs.
tnx tnx very tnx
 
Back
Top