Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mykelcodex's avatar

Subdomain management on forge

Please how do I handle my domain and hosting.

I have a domain which I bought from godaddy. I want to host my API on digitalocean with this subdomain api.domainname.com managed by forge and host the main site(frontend) which is domainname.com on heroku. How do I go about it?

Kindly advise

0 likes
3 replies
CorvS's avatar

@mykelcodex Not really getting your problem. Simply add a site "api.example.com" to your server on forge and create the corresponding DNS entry on godaddy.

mykelcodex's avatar

@corvs thanks for your response

Can I add just the subdomain on forge? I want digitalocean to manage the subdomain hosting as well.

CorvS's avatar
CorvS
Best Answer
Level 27

@mykelcodex Yes, as long as your DNS entry is set correctly and points the subdomain to the IP address of your forge server.

1 like

Please or to participate in this conversation.