Question

want to use Godaddy Domain with Hosting for Lets Encrypt with Apache

Posted July 20, 2021 213 views
ApacheAPIDNSLet's EncryptLaravelUbuntu 20.04DigitalOcean Droplets

I have a domain that is registered on GoDaddy and Also Hosts a Web Page using GoDaddy Hosting.

I am having a droplet with Apache server hosting a LARAVEL API. I want the APACHE server to shift all the APIs to HTTPS. So for that, we are using lets-encrypt. The Lets Encrypt setup needs a domain so I am trying to use my GoDaddy domain by just A records having the value of the public ip of my droplet.

I am not changing the DNS else my hosting on GoDaddy shall not work.

As of now, we are not successful with our efforts.

Lets encrypt gives the below error:-
[https://drive.google.com/file/d/1hccWvO3GA8EeEVzmehbFL9eG_VES0t0H/view?usp=sharing](http://)

Please let me know, what is the correct way of doing it…

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hi @alamba093,

What domain are you trying to use, is a subdomain of your main domain hosted with GoDaddy? If you use a subdomain, you’ll just need to add an A record like so

laravel.maindomain.com A XXX.XXX.XXX.XXX

Where laravel.maindomain.com would be the subdomain you’ll have created and XXX.XXX.XXX.XXX would be your Droplet’s IP address.

Once you add it like that, you should be able to continue with configuring your Laravel APIs.

  • Hi @KFSys

    Thanks for your answer.

    So you recommend me to make a subdomain on GoDaddy and place an A record with my droplet IP and use that SubDomain for let’s encrypt with apache. This way I don’t have to mess with DNS and web hosting on Godaddy?

    as of now, I added an A record for the domain.