Learn about Centmin Mod LEMP Stack today
Register Now

Letsencrypt Setting up a second vhost

Discussion in 'Install & Upgrades or Pre-Install Questions' started by aidzo, Dec 4, 2018.

  1. aidzo

    aidzo New Member

    4
    0
    1
    Nov 14, 2018
    Ratings:
    +0
    Local Time:
    10:56 AM
    Was just wondering how I would go about setting up a second vhost I set the first one up with the following settings from option 2
    Code:
    Enter vhost domain name to add (without www. prefix): domain.com
    
    Create a self-signed SSL certificate Nginx vhost? [y/n]: y
    I have cloudflare on domain.com so the SSL works perfect. Thinking about what would be the best plan of action for setting up a second vhost with ssl.
    • CentOS Version: CentOS 7 64bit ?
    • Centmin Mod Version Installed: 123.09beta01
    • When was last time updated Centmin Mod code base ? : Today
    • Persistent Config: LETSENCRYPT_DETECT='y'

     
  2. eva2000

    eva2000 Administrator Staff Member

    38,028
    8,352
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,865
    Local Time:
    8:56 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  3. aidzo

    aidzo New Member

    4
    0
    1
    Nov 14, 2018
    Ratings:
    +0
    Local Time:
    10:56 AM
    So if I was to do the same thing as the first vhost and add a domain linked to a separate Cloudflare account would the ssl work? Like below

    Code:
    Enter vhost domain name to add (without www. prefix): Cloudflaredomain2.com
    
    Create a self-signed SSL certificate Nginx vhost? [y/n]: y
     
  4. mistermr

    mistermr New Member

    6
    0
    1
    Dec 18, 2018
    Ratings:
    +0
    Local Time:
    2:56 AM
    So with the beta centmin, I had to install BOTH a self-signed and a let's encrypt to get the SSL to install... I also had to choose option 3.

    But Cloudflare has SSL included, why not just use that one and skip the SSL in centmin?
     
  5. eva2000

    eva2000 Administrator Staff Member

    38,028
    8,352
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,865
    Local Time:
    8:56 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    because optimal config is Cloudflare Full (nonstrict) SSL with Centmin Mod Nginx SSL so that cloudflare talks to Centmin Mod Nginx via HTTPS
     
..