Author Topic: Only 1 site it works with SSL rest of them redirect  (Read 3275 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Only 1 site it works with SSL rest of them redirect
« on: July 21, 2016, 06:31:26 AM »
Hello,

I have a problem with SSL, i generate SSL's with Lets Encrypt, manually and i put the vHost in /usr/local/apache/conf.d/vhosts-ssl.conf , it's look like this:

Code: [Select]
# vhost_start mysubdomain1.domain.tld
<VirtualHost MYIP:443>
 ServerName mysubdomain1.domain.tld
 ServerAdmin admin@server.tld
 
 DocumentRoot /home/user/public_html/staging/mysubdomain1/public
 SSLEngine on
 SSLCertificateFile /etc/letsencrypt/live/mysubdomain1.domain.tld/cert.pem
 SSLCertificateKeyFile /etc/letsencrypt/live/mysubdomain1.domain.tld/privkey.pem
 SSLCertificateChainFile /etc/letsencrypt/live/mysubdomain1.domain.tld/fullchain.pem
<IfModule mod_suexec.c>
    SuexecUserGroup user user
</IfModule>

<IfModule mod_suphp.c>
    suPHP_UserGroup user user
    suPHP_ConfigPath /home/user
</IfModule>

<Directory "/home/user/public_html/staging/mysubdomain1/public">
    AllowOverride All
</Directory>
</VirtualHost>
# vhost_end mysubdomain1.domain.tld

And the Vhost it's works, but when i put another vhost with mysubdomain2 and trying acces the https://mysubdomain2.domain.tld it will redirect to the mysubdomain1.domain.tld, i don't understand why it works only one SSL.

VHost mysubdomain2:

Code: [Select]
# vhost_start mysubdomain2.domain.tld
<VirtualHost MYIP:443>
 ServerName mysubdomain2.domain.tld
 ServerAdmin admin@server.tld
 
 DocumentRoot /home/user/public_html/staging/mysubdomain2/public
 SSLEngine on
 SSLCertificateFile /etc/letsencrypt/live/mysubdomain2.domain.tld/cert.pem
 SSLCertificateKeyFile /etc/letsencrypt/live/mysubdomain2.domain.tld/privkey.pem
 SSLCertificateChainFile /etc/letsencrypt/live/mysubdomain2.domain.tld/fullchain.pem
<IfModule mod_suexec.c>
    SuexecUserGroup user user
</IfModule>

<IfModule mod_suphp.c>
    suPHP_UserGroup user user
    suPHP_ConfigPath /home/user
</IfModule>

<Directory "/home/user/public_html/staging/mysubdomain2/public">
    AllowOverride All
</Directory>
</VirtualHost>
# vhost_end mysubdomain2.domain.tld


Offline
*
Re: Only 1 site it works with SSL rest of them redirect
« Reply #1 on: August 03, 2016, 04:39:58 PM »
this bug was fixed with the latest version, you should check that you have the latest version
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: Only 1 site it works with SSL rest of them redirect
« Reply #2 on: August 03, 2016, 08:27:04 PM »
Also you can check out this thread.
“Would you tell me, please, which way I ought to go from here?”
“That depends a good deal on where you want to get to,” said the Cat.
“I don’t much care where–” said Alice.
“Then it doesn’t matter which way you go,” said the Cat.
Neo2SHYAlien's Blog