Can i set a CNAME to a server with a path

June 23, 2019 97 views
DigitalOcean Ubuntu 18.04

Hi.

I'm transferring my NS to DO.

My old NS provider had the option to do a CNAME forwart not just to an I.P, but to an IP with a mapping (eg. www.example.com/application)

I don't seem to be able to do this with the DO CPANEL, or am i mistaken ?

/Michael

1 Answer

Hi there Michael,

Unfortunately, that isn't how CNAMEs work, it is likely that your old provider was simply abstracting their own redirection service through those CNAME records.

To achieve this, you would need to set up your own redirection/mapping on a web server which you can then point the CNAME to.

Hope that helps.
- Matt.

Have another answer? Share your knowledge.