.localhost domains
It's possible to configure private, custom domains for local webapps, so instead of having to remember and type 'localhost:4333', you can simply navigate to 'appname.localhost'. The process involves setting up each app as a launchd daemon that listens to a unique port, configuring /etc/hosts to redirect traffic to 127.0.0.1, and then redirecting traffic from 127.0.0.1 to the right port for the domain. This post provides more details on the process.
Comments
Post a Comment