Domain and SSL setup
oskarhane
PROOP

14 days ago

I'm wondering how to setup my services for this scenario:

I have a web server that should take two subdomains (img and www) and all other subdomains should redirect to www.
Can I create two certs for img and www and add to the web server service and for the second redirect service generate a cert for *, with auto updates etc from railway?

$10 Bounty

3 Replies

Railway
BOT

14 days ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open Railway 14 days ago


You can use Cloudflare's DNS service, and create routing rules from there that redirect * to www except for img.

Also, if you wish to use www, you should also add a record for @ as well.

Another option is to use wildcard domains on Railway. (https://docs.railway.com/networking/domains/working-with-domains#wildcard-domains)


oskarhane
PROOP

14 days ago

Yeah, I've setup a redirect service in railway now that catches wildcard. But it should also catch the base domain but my DNS provider don't support CNAME on base. Is there a workaround? Can I reserve an IP so I can point a A to it and from that redirect?


I would highly suggest using Cloudflare’s DNS service then.

Railway only provides CNAME records, not anything else.


Loading...