Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

SSL is running for all web sites

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
9 posts • Page 1 of 1
kalem
Posts: 5
Joined: Thu Aug 22, 2019 2:34 pm

Os: CentOS 6x
Web: nginx + php-fpm
SSL is running for all web sites
  • Quote

Post by kalem » 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 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 ?
Top

dpeca
VestaCP Team
Posts: 473
Joined: Wed Nov 25, 2015 7:30 pm

Re: SSL is running for all web sites
  • Quote

Post by dpeca » Sun Aug 30, 2020 12:28 pm

solution is simple, install SSL on other sites that does not have installed SSL.
Top

kalem
Posts: 5
Joined: Thu Aug 22, 2019 2:34 pm

Os: CentOS 6x
Web: nginx + php-fpm
Re: SSL is running for all web sites
  • Quote

Post by kalem » Mon Aug 31, 2020 8:34 pm

i dont use SSL for all web sites, i am using SSL for only one web site
Top

dpeca
VestaCP Team
Posts: 473
Joined: Wed Nov 25, 2015 7:30 pm

Re: SSL is running for all web sites
  • Quote

Post by dpeca » Mon Aug 31, 2020 8:58 pm

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.
Top

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: SSL is running for all web sites
  • Quote

Post by grayfolk » 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.
Top

kalem
Posts: 5
Joined: Thu Aug 22, 2019 2:34 pm

Os: CentOS 6x
Web: nginx + php-fpm
Re: SSL is running for all web sites
  • Quote

Post by kalem » Tue Sep 08, 2020 1:58 pm

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
Top

dpeca
VestaCP Team
Posts: 473
Joined: Wed Nov 25, 2015 7:30 pm

Re: SSL is running for all web sites
  • Quote

Post by dpeca » Thu Sep 10, 2020 10:49 pm

i told you, install SSL on domain that you are trying to open with https://
without that, wrong site will be opened
Top

mazzmurray
Posts: 1
Joined: Fri Sep 11, 2020 6:53 am

Os: Ubuntu 15x
Web: apache + nginx
Re: SSL is running for all web sites
  • Quote

Post by mazzmurray » Fri Sep 11, 2020 6:58 am

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://
Top

Anton Kirilov
Posts: 14
Joined: Tue May 12, 2020 4:42 pm

Os: Debian 8x
Web: apache + nginx
Re: SSL is running for all web sites
  • Quote

Post by Anton Kirilov » Sat Sep 12, 2020 1:10 pm

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)
Top


Post Reply
  • Print view

9 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password