Join the community today
Register Now

SSL Domain Forward

Discussion in 'Domains, DNS, Email & SSL Certificates' started by Jimmy, Feb 20, 2017.

  1. Jimmy

    Jimmy Premium Member Premium Member

    1,165
    256
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +626
    Local Time:
    3:20 AM
    1.13.x
    MariaDB 10.1.x
    Does anyone know if will have an SSL issue if I forward one site to another site and the first site isn't SSL but the site use to be all SSL?

    I'm changing the names of one of my sites. The old site is currently SSL so most of the users are coming to the site via https://

    Do I need to get a cert for the old site too? Or if I don't, will it stop when it hits the first server block below?

    Maybe I have to create a vhost site for the old domain w/ a cert and forward from there for this to work?

    Code:
    server {
    listen 123.456.789.101:80;
    listen 123.456.789.101:443 ssl http2;
    server_name old-domain.com www.old-domain.com
    return 301 https://new-domain.com$request_uri;
    }
    
    server {
    listen 234.567.891.111:80;
    server_name new-domain.com www.new-domain.com;
    return 301 https://new-domain.com$request_uri;
    # Access and Error Logs
    access_log /home/nginx/domains/domain.com/log/access_via80.log combined buffer=256k flush=60m;
    error_log /home/nginx/domains/domain.com/log/error_via80.log;
    }
    
    server {
    listen 234.567.891.111:443 ssl http2;
    server_name new-domain.com;
    root /home/nginx/domains/new-domain.com/public;
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,993
    6,919
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,424
    Local Time:
    6:20 PM
    Nginx 1.13.x
    MariaDB 5.5
    should be fine in theory.. just try and see :)
     
  3. Jimmy

    Jimmy Premium Member Premium Member

    1,165
    256
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +626
    Local Time:
    3:20 AM
    1.13.x
    MariaDB 10.1.x
    I'll have to give it a try. Just wondered if someone had run into this situation before.
     
  4. Jimmy

    Jimmy Premium Member Premium Member

    1,165
    256
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +626
    Local Time:
    3:20 AM
    1.13.x
    MariaDB 10.1.x
    Setup on of the domains I need to re-direct (there are two). Non-SSL links are working fine. SSL links I get ERR_CONNECTION_RESET in the browser. So, it appears that I need to setup certs for each domain.
     
    • Informative Informative x 1
  5. eva2000

    eva2000 Administrator Staff Member

    30,993
    6,919
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,424
    Local Time:
    6:20 PM
    Nginx 1.13.x
    MariaDB 5.5
    testing is always best (y)
     
  6. Jimmy

    Jimmy Premium Member Premium Member

    1,165
    256
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +626
    Local Time:
    3:20 AM
    1.13.x
    MariaDB 10.1.x
    Setup the SSL and works great now. BTW found a great site for SSLs $4.99 a year for a PositiveSSL (must register for 3 years).
    https://www.ssls.com/
     
    • Like Like x 1
  7. eva2000

    eva2000 Administrator Staff Member

    30,993
    6,919
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,424
    Local Time:
    6:20 PM
    Nginx 1.13.x
    MariaDB 5.5
    nice Letsencrypt is forcing down the SSL prices for commercial players :D
     
    • Like Like x 1
  8. Jimmy

    Jimmy Premium Member Premium Member

    1,165
    256
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +626
    Local Time:
    3:20 AM
    1.13.x
    MariaDB 10.1.x
    Namecheap is still the standard $9.00. ssls.com seems to be a namecheap site because they're using the namecheap ssl - says namecheap in the browser.

    I thought $14 for 3 years wasn't bad.
     
    • Like Like x 1
  9. Jimmy

    Jimmy Premium Member Premium Member

    1,165
    256
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +626
    Local Time:
    3:20 AM
    1.13.x
    MariaDB 10.1.x
  10. eva2000

    eva2000 Administrator Staff Member

    30,993
    6,919
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,424
    Local Time:
    6:20 PM
    Nginx 1.13.x
    MariaDB 5.5
    it's the same info just generic but yeah will update for clarification
     
    • Like Like x 1
  11. eva2000

    eva2000 Administrator Staff Member

    30,993
    6,919
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,424
    Local Time:
    6:20 PM
    Nginx 1.13.x
    MariaDB 5.5
    actually already in the page
     
    • Informative Informative x 1
  12. Jimmy

    Jimmy Premium Member Premium Member

    1,165
    256
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +626
    Local Time:
    3:20 AM
    1.13.x
    MariaDB 10.1.x
    Must have missed that. Lot of text info to read on that page. Maybe putting the actual code examples, it would clarify things for newbs. Obviously, it's up to you.
     
  13. Jimmy

    Jimmy Premium Member Premium Member

    1,165
    256
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +626
    Local Time:
    3:20 AM
    1.13.x
    MariaDB 10.1.x
    Of course it might just be me working on 3 hours of sleep in the past 2 days. o_O
     
    • Like Like x 1