How can I set up DD-WRT (or anything else) such that I can have various hostnames all point to various different Nginx projects on the same local server?
I have a wifi router with DD-WRT.
I'm a software engineer developing multiple different sites on my local server (Nginx on Windows 10).
hosts file specifies various hostnames, and my Nginx config points them to certain directories on my machine,
I very often want to access these local websites using an iPhone on my wifi LAN.
The only way I know how to set up my Nginx config, Windows
hosts file, and DD-WRT is such that my iPhone can reach one of the local sites.
I can either type in the local IP of my server, or I could visit
http://ryandesk.local (since that's the computer name on the network), or I could visit
http://ryandesk.xyz (assuming I set up a static lease in DD-WRT as as described in this other answer).
The Nginx config specifies which local site is "default" and will be displayed.
I want all of my local sites to be accessible from my iPhone, though (each with their own hostname).
I'd also prefer answers that don't bother with ports. (It seems like bookmarks and other stuff all stays simpler if I'm not messing with multiple ports.)