Hello everyone,
I've recently installed CWP on my CentOS 6.5 and I need to add SSL to my sub domain.
The problem is that I'm kinda ( totally ) noob at this what's more the vhost looks different ( or it's me again ? , don't know ).
Here is my vHost :
# vhost_start secure.#####
<VirtualHost MYIP:80>
ServerName secure.#####
ServerAlias www.secure.#####
ServerAdmin contact@#####
DocumentRoot "/home/#####/public_html/secure"
ScriptAlias /cgi-bin/ /home/#####/public_html/secure/cgi-bin/
#
# Custom settings are loaded below this line (if any exist)
# Include "/usr/local/apache/conf/userdata/#####/secure.#####/*.conf
<IfModule mod_suexec.c>
SuexecUserGroup ##### #####
</IfModule>
<IfModule mod_suphp.c>
suPHP_UserGroup ##### #####
</IfModule>
<Directory "/">
AllowOverride All
</Directory>
</VirtualHost>
# vhost_end secure.#####
Tested but failed ( Apache wont start )
# vhost_start secure.#####
<VirtualHost MYIP:443>
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
SSLCertificateFile /etc/pki/tls/certs/server1.sfhits.com.crt
SSLCertificateKeyFile /etc/pki/tls/private/secure.sfhits.com.key[b][/b]
ServerName secure.#####
ServerAlias www.secure.#####
ServerAdmin contact@#####
DocumentRoot "/home/#####/public_html/secure"
ScriptAlias /cgi-bin/ /home/#####/public_html/secure/cgi-bin/
#
# Custom settings are loaded below this line (if any exist)
# Include "/usr/local/apache/conf/userdata/#####/secure.#####/*.conf
<IfModule mod_suexec.c>
SuexecUserGroup ##### #####
</IfModule>
<IfModule mod_suphp.c>
suPHP_UserGroup ##### #####
</IfModule>
<Directory "/">
AllowOverride All
</Directory>
</VirtualHost>
# vhost_end secure.#####
##### AKA DOMAIN AND USERNAME
I know that I have to create a copy of the code with changed port ( usually ) but how to add my SSL cert to it.
(Maybe something like :
https://wiki.apache.org/httpd/NameBasedSSLVHosts) (I'm not testing it because last time I screw up my old CP)
Thanks you.