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

chatty's avatar

point subdomain to another domain in the same droplet

I have 2 domains installed on the same DO droplet (same IP address) with Laravel Forge.

What I'd like to achieve is that when a user visits start.first-domain.com, I want to resolve second-domain.com which is installed on the same server.

I created a cname record in Cloudlfare DNS like this:

start.first-domin.com(name) => second-domain.com (target)

However, it doesn't resolve second-domain.com. It just directs traffic to start.first-domin.com.

I figured cname doesn't work like that. How can I make it work so that when users hit start.first-domain.com, it resolves second-domain.com with the path name and query strings

0 likes
1 reply

Please or to participate in this conversation.