Page 1 of 1

SSL is running for all web sites

Posted: Sat Aug 29, 2020 7:41 am
by kalem
i have ssl for my web site, i have uploaded to vestacp but this ssl is running for all web site.
i mean , for example my ssl for 'lasbis.net', and my other web sites 'sample.com' and 'sampletwo.com'
if i try to open with 'https' , all web sites direct to lasbis.net.
http://www.sample.com -> running normally
https://www.sample.com -> direct to 'lasbis.net'

how can i fix it ?

Re: SSL is running for all web sites

Posted: Sun Aug 30, 2020 12:28 pm
by dpeca
solution is simple, install SSL on other sites that does not have installed SSL.

Re: SSL is running for all web sites

Posted: Mon Aug 31, 2020 8:34 pm
by kalem
i dont use SSL for all web sites, i am using SSL for only one web site

Re: SSL is running for all web sites

Posted: Mon Aug 31, 2020 8:58 pm
by dpeca
Then dont expect that going to https:// will open correct site.
It will not.
Site that does not have it's own SSL will not be opened via https://
Instead, first site that has SSL will be loaded.

Re: SSL is running for all web sites

Posted: Sat Sep 05, 2020 1:18 am
by grayfolk
kalem wrote:
Thu Sep 03, 2020 9:20 pm
please check my problem with correct sites
Read this explanation again: viewtopic.php?p=83088#p83088
Doesnt matter correct sites or no.

Re: SSL is running for all web sites

Posted: Tue Sep 08, 2020 1:58 pm
by kalem
grayfolk wrote:
Sat Sep 05, 2020 1:18 am
kalem wrote:
Thu Sep 03, 2020 9:20 pm
please check my problem with correct sites
Read this explanation again: viewtopic.php?p=83088#p83088
Doesnt matter correct sites or no.
so? what can i do for this ? tell me

Re: SSL is running for all web sites

Posted: Thu Sep 10, 2020 10:49 pm
by dpeca
i told you, install SSL on domain that you are trying to open with https://
without that, wrong site will be opened

Re: SSL is running for all web sites

Posted: Fri Sep 11, 2020 6:58 am
by mazzmurray
kalem wrote:
Sat Aug 29, 2020 7:41 am
i have ssl for my web site, i have uploaded to vestacp but this ssl is running for all web site.
i mean , for example my ssl for 'lasbis.net', and my other 2048 web sites 'sample.com' and 'sampletwo.com'
if i try to open with 'https' , all web sites direct to lasbis.net.
http://www.sample.com -> running normally
https://www.sample.com -> direct to 'lasbis.net'

how can i fix it ?
Site that does not have it's own SSL will not be opened via https://. So install SSL on site that you're trying to open with https://

Re: SSL is running for all web sites

Posted: Sat Sep 12, 2020 1:10 pm
by Anton Kirilov
dpeca don't want to say, but I will say instead.
(he probably dont want to looks like he advertise myVesta fork)

So, myVesta fork implemented this script: https://github.com/myvesta/vesta/blob/m ... signed-ssl
If you just download it, and put it on /usr/local/vesta/bin/v-install-unsigned-ssl (you can do it in your SSH console):

Code: Select all

wget -O /usr/local/vesta/bin/v-install-unsigned-ssl https://raw.githubusercontent.com/myvesta/vesta/master/bin/v-install-unsigned-ssl
and then chmod it:

Code: Select all

chmod a+x /usr/local/vesta/bin/v-install-unsigned-ssl
Then, in your SSH console, you just need to type:

Code: Select all

v-install-unsigned-ssl YOUR-DOMAIN.COM
and your domain will instantly get unsigned SSL and it will start to serve it's own site (instead of other site that has SSL)