How to use domain access module for localhost
Regarding module configuration, use your localhost address as domain alias for each domain. /admin/structure/domain/view/1/alias

Of course you need to have those aliases configured for your virtualhost on server too.