2

I have an application running on Pivotal Web Services that has 2 Front End components. I have added the Pivotal SSL Service and added a wildcard SSL certificate for my domain mysite.io and was given an "SSL Alias" that I was told to use in my registrar. My SSL Alias is : mysite.io-353e6df7.ssl.run.pivotal.io.

I have followed the instructions and put the CName value in my registrar (Namecheap), but the URL still goes to a non-ssl domain. I am trying to access my UAA instance via SSL for example. Here it is defined with the non-ssl wildcard CName entry and my CName entry for SSL.

Cname Entries

How do I get *.uaa.mysite.io to be over HTTPS?

3
  • HTTPS versus HTTP is a protocol change. Pointing a domain name to another cannot effect a protocol change. DNS only ties a domain name to a routable IP address. You will have to explicitly use https:// before your domain name or redirect HTTP to HTTPS.
    – closetnoc
    Commented Mar 28, 2017 at 4:14
  • Seems that the cert is invalid when I manually go to HTTPS. The alias I have above doesn't seem to redirect to anything either. Commented Mar 28, 2017 at 17:42
  • DNS does not redirect. It is designed to only do one thing. Tie domain names to IP addresses. You will have to create any redirect on your web server.
    – closetnoc
    Commented Mar 28, 2017 at 18:49

1 Answer 1

1

Try adding this to your .htaccess file to redirect to https

RewriteCond %{SERVER_PORT} =80
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.