Heroku ACM SSL - ACM failing for non www domain - heroku

I have an existing Rails application in Heroku. I configured ACM SSL for the application this evening and everything worked fine. After an hour, I received an email stating that the ACM failed for the non "www" domain. Everything works fine for www.
Is the non-www domain required? We enforce a 301 redirect on the domain to use www version.
Am I missing something? Help on this would be appreciated.
Thanks in advance.

Related

Nginx / Laravel multi tenancy SSL management

Working with a multi tenancy solution where users are to be allowed to set their custom domains - the solution works just fine. However, looking for suggestions on how to get the SSL installed on those custom domains and set them in Nginx so they are served via https route.
In theory, as soon as the user adds custom domain from the backend - SSL is to be installed once A record / CNAME is verified to be pointing correctly. We will be getting Letsencrypt SSL and need an approach on how to handle Ngnix config to provide SSL key to it can be served.
If anyone has produced a similar solution and can shed light on how to approach this, that will be great.
Thanks in advance.
You can solve it by manually issuing certificates using Let's Encrypt and then adding new NGINX config file for serving new domain
Or you can just switch from NGINX to Caddy and it will automatically do it for you! Also you could specify in your application route file a route for a domain whitelist check to prevent unauthenticated domain issues

Heroku custom domain with Godaddy

I have a heroku app set up on a .app TLD, and a custom domain through GoDaddy.
What I would like is to have something like this:
myapp.example.com resolves to my app, and does not redirect.
What I am currently experiencing is:
myapp.example.com redirects (with a 307) to my-example-app.herokuapp.com
What I have done:
Following the Heroku guide for custom domains, I've done heroku domains:add myapp.example.com -a my-example-app and also added a cname to though the Godaddy UI for my domain.
CNAME myapp some-heroku-dns-somehash.herokudns.com
Any help, advice or pointers would be appreciated.
Edit: The 307 redirect is just due to the app redirecting to /sign-in. The issue that I am trying to resolve is using the custom domain, and not the heroku domain.
The 307 redirect is just due to the app redirecting to /sign-in.
This causes me to think that your application thinks it should build URLs using the Heroku domain instead of the custom domain.
Does your application have a place where its domain is configured? You might just need to update that setting so it can build own URLs using the proper domain.

Godaddy and heroku, pointing domain

I have a domain from godaddy and an app hosted on heroku. Now I can access my app by domain.com or www.domain.com or domain.herokuapp.com i want to remove the last version and domain.herokuapp.com to become domain.com.
I have name.com and www.name.com worked but i want to get rid off name.herokuapp.com
Thanks!
You can use rack-cannonical-host https://github.com/tylerhunt/rack-canonical-host to force anyone visiting domain.herokuapp.com to be redirected to domain.com or www.domain.com. I use this for CodeTriage so if you visit http://issuetriage.com it will redirect to https://www.codetriage.com. Here is the code in the project that sets up the redirect.
This may helps (Custom Domain Names for Apps in Heroku).
You can also redirect www.domain.com to domain.com in GoDaddy

How to generate a www LetsEncrypt certificate using laravel forge?

I provisioned a server using forge and set the domain to blog.example.com. And I generate a LetsEncrypt certificate for that server and set the site to run on http2. It was perfectly fine.
However, I need to make the server accessible via www.blog.example.com now. So I set a CNAME record to route www.blog to blog.example.com. But I got an error This site can’t provide a secure connection when I try to access the site via www.blog.example.com. So I try to generate a new certificate for www.blog.example.com but forge reply First domain does not match root domain on site.
How can I solve the problem?
Thank you.

magento multiple website working with https only

I got multiple websites under one magento with domain domain1 and domain2
My base domain is domain1 which is using SSL, I made made second website in same magento by name domain2 without any SSL.
My base domain is working perfectly fine.
Now if i open my second domain with HTTP it goes to cgi-sys/defaultwebpage.cgi
But works perfectly fine with HTTPS.
Can someone please help me with it?

Resources