Custom domain request forwarding

Hello, I would like to do the following in my railway project: Connect 2 custom domains to a web app. domain1 : longdomain.com domain2: lngd.io The first domain needs to point to the web app. longdomain.com -> example.up.railway.app The second domain needs to point to a specific route of the web app: lngd.io -> example.up.railway.app/api So when a request gets forwarded like so: lngd.io/<dynamic-value> -> example.up.railway.app/api/<dynamic-value> Is what I am trying to do for domain2 possible on railway?
3 Replies
Percy
Percy2y ago
Project ID: N/A
Slaven
SlavenOP2y ago
N/A
Brody
Brody2y ago
yes it is, but that's something your app itself would have to take care of, you can read the incoming host header and make the routing logic dependent on the name of the host
Want results from more Discord servers?
Add your server