jeudi 5 février 2015

Multiple .local hostname on one computer


Is possible setup multiple .local hostname on one physical computer?


Background:



  • home network (behind the DSL/NAT router) (192.168.1.*)

  • have a mac-mini, called as "tango.local". (set in the System.prefs). The IP-setting is "use DHCP with manual address" - the computer address is 192.168.1.10.


Now, on this mac want run apache2 (macports version), with different VirtualHost directives, like:



<VirtualHost *:80>
ServerName tango.local
ProxyPass / http://localhost:5000/
ProxyPassReverse / http://localhost:5000
</VirtualHost>
<VirtualHost *:80>
ServerName another.local
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000
</VirtualHost>


For this setup I need assign two different hostnames to the mac, e.g. the main tango.local and the another.local. Both names should be resolve-able from the LAN, e.g. computers on the LAN (my mac-notebook) must correctly resolve the http://another.local/ address.


It is possible to do this with simple way, (e.g. somewhat convience the bonjour to advertise both names for the single IP), or need setup the bind DNS server for serving the .local domain?


Bonus question: the main goal is resolve the another.local from another mac (via bonjour). Secondary: what i need setup to allow access the http://another.local from an windows7 notebook? (i'm total windiot - e.g. is possible somewhat convert bonjour names-addresses to the "windows nmbd" or whatever?





Aucun commentaire:

Enregistrer un commentaire