←back to thread

.localhost Domains

(inclouds.space)
301 points todsacerdoti | 1 comments | | HN request time: 0.204s | source
Show context
vlod ◴[] No.43644531[source]
Anyone care to shed why myapp.localhost:3000 (for the webapp I'm developing) is something that's useful for me rather than localhost:3000 ?

EDIT: on linux and don't use launchd, so I'd still the port number

replies(8): >>43644573 #>>43644584 #>>43644588 #>>43644599 #>>43644601 #>>43644606 #>>43644652 #>>43645096 #
1. mrweasel ◴[] No.43644606[source]
Maybe you have a stack of applications that needs to communicate. Seeing db.localhost is a little easier to read that db:3360, but especially if you have multiple web applications. It's easier to read sso.localhost, api.localhost, and www.localhost.

They also show having the webserver to the TLS, that might be helpful.