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 For one site Become Default SSL for All site

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
8 posts • Page 1 of 1
munna
Posts: 2
Joined: Thu Mar 31, 2016 11:29 am

SSL For one site Become Default SSL for All site
  • Quote

Post by munna » Thu Mar 31, 2016 11:35 am

Hi,

I have Installed SSL for one of my Website, its working fine, it is the only SSL on my vesta, i have other 120 websites,
but whenever i type https://otherdomains OR, https://vestacpip its showing and redirecting to that SSL site. look like the SSL become default for all sites. if i hit https://otherdomains, it should not work write ? what do i miss ?
Please help..
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: SSL For one site Become Default SSL for All site
  • Quote

Post by mehargags » Thu Mar 31, 2016 6:18 pm

Get a Separate IPv4 for your SSL site and set the site to work at https on that IP. This is the only (easy) way to do it else you will have to mug up your head in insane nginx/apache configs.

an IPv4 cost around $1/year so I presume If you are hosting 120 sites, you can buy a single IP dedicated to one site.
Top

munna
Posts: 2
Joined: Thu Mar 31, 2016 11:29 am

Re: SSL For one site Become Default SSL for All site
  • Quote

Post by munna » Fri Apr 01, 2016 3:05 am

Thank you very much, but in future some of my client could want their sites to install SSL what will i do then ? buy seperate ip in this way ? please clear me..or i can just assign those sites to one single ip ? please help...
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: SSL For one site Become Default SSL for All site
  • Quote

Post by mehargags » Sat Apr 02, 2016 6:56 am

Yes... you get it right.
SSL Costs extra so you have to charge your client for the SSL certificate and for the EXTRA IP that needs to be allocated for his SSL site.
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: SSL For one site Become Default SSL for All site
  • Quote

Post by tjebbeke » Mon Apr 04, 2016 2:51 pm

You can use let's encrypt to install free SSL certificates.
You can read this to change the nginx config and block the 'wrong' requests: http://nginx.org/en/docs/http/request_p ... rver_names
Top

SS88
Posts: 336
Joined: Thu Nov 19, 2015 12:40 pm

Re: SSL For one site Become Default SSL for All site
  • Quote

Post by SS88 » Fri Apr 08, 2016 1:46 pm

You can have multiple SSL certificates installed one 1 IP address.

If you do not want visitors to be able to see another clients' website when they go to HTTPS then you need to buy 1 more IP address and make sure all SSL clients are on that IP address and your other clients who don't have SSL are on a different IP address.
Top

anyone
Posts: 4
Joined: Fri Apr 24, 2015 1:49 am

Re: SSL For one site Become Default SSL for All site
  • Quote

Post by anyone » Wed Apr 27, 2016 3:17 am

Do not open the default site's SSL
In other new sites can be used SSL
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: SSL For one site Become Default SSL for All site
  • Quote

Post by skurudo » Wed Apr 27, 2016 5:36 am

OR we can filter a little connections via nginx - /etc/nginx/conf.d/192.168.0.1.conf (your IP here)

Code: Select all

# for incomming connection http
server {
    listen       192.168.0.1:80 default;
    server_name  _;
        access_log /dev/null;
        error_log /dev/null;
        return 444;
}

# for incomming connection https
server {
    listen      192.168.0.1:443 ssl spdy;
    server_name _;
    ssl         on;
    ssl_certificate      /home/admin/conf/web/ssl.domain.ru.pem;
    ssl_certificate_key  /home/admin/conf/web/ssl.domain.ru.key;
        access_log /dev/null;
        error_log /dev/null;
  return 444;
}
Top


Post Reply
  • Print view

8 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