It kind of seems like you are describing virtual hosts here and this should work fine on a Mac with Apache.
i haven’t really played with any of the servers you mentioned; but, if you want to add another local host address you should try what Linux does for IPv6 addresses in the /etc/hosts file.. and the way they do that is by creating multiple localhosts in that file, each on their own line..
hope this helps, please submit more info if you come across any issues.
Topic:
Programming Languages
SubTopic:
Swift
Tags: