10 days ago
ok got another one for you is it possible to do a wildcard sub-domain pointing to same app on railway? like *.example.com all goes to port 8080
34 Replies
10 days ago
it is possible, and you do it the exact same way you did in your question, you just add your domain with a * as the subdomain, so adding *.example.com will add a wildcard subdomain to your service
i've been adding www.example.com and example.com this whole time.
10 days ago
it's probably better adding www and @ as their own domains though, because if in the future you want to add a cdn.example.com for example or whatever then it'll complicate things since you'll first need to decouple all subdomains from existing service
10 days ago
you can, but not in a seperate service
8'm letting people use .bl0ggers.com but i might need cdn.bl0ggers.com someday
10 days ago
so let's say you have a seperate cdn service, or maybe a blog.example.com, if you want it to be a in a seperate service then you'd need to undo the wildcard subdomain because with a wildcard subdomain all subdomains are routed to the wildcard subdomain service
10 days ago
actually nvm I'm wrong, you're probably fine
10 days ago
you can have *.example.com and blog.example.com in a seperate service I think
10 days ago
my bad
10 days ago
I"D STILL argue it's better not to use wildcard subdomains if it's only for www and @ though but it shouldn't interfere in the way I said it would
why is this not resolving https://bl0ggers.com/ but www is
10 days ago
wildcard subdomains only match subdomains
10 days ago
it wont match for the root domain
10 days ago
who's yoyur?
10 days ago
oh, how so?
10 days ago
I'm just a moderator for the server and forums
10 days ago
exactly, wildcard subdomains are only for subdomains
10 days ago
(although personally, I'd recommend being explicit with what domains should route to your service unless you actually need a catch all, but thats just my recommendation)
i do need a catchall like chovy.substack.com my bl0ggers page will be chovy.bl0ggers.com
10 days ago
ohh okay, fair enough
9 days ago
all clear to mark as solved?
9 days ago
Funny.
9 days ago
trying to catch up <:whyy:820544448798392330>