| alias domain available on lan
|
dwlamb

msg:4512792 | 7:48 pm on Oct 26, 2012 (gmt 0) | I am using domain aliases on a Linux machine for development. Is there a way to specify all machines on a LAN can find such a domain? I can find sites from my Windows PC by entering the Linux machine's IP address in the address bar of My browser. But aliases provide a better way of defining the top level root directory of a site to more closely mimic the site as deployed on a production server. I would like to be able to enter a uri in a browser on either my Windows or Linux machine and have it open the site defined/hosted on the Linux machine. Thanks for reading this and have a great day. [edited by: bill at 7:12 am (utc) on Oct 28, 2012] [edit reason] formatting [/edit]
|
dstiles

msg:4512826 | 9:14 pm on Oct 26, 2012 (gmt 0) | Put them in the hosts file? (/etc on linux, buried in (osfolder)/etc on windows). You have to define it for all computers you want to access the domain from. Edit hosts on linux with: sudo gedit /etc/hosts
|
graeme_p

msg:4515587 | 11:24 am on Nov 4, 2012 (gmt 0) | | But aliases provide a better way of defining the top level root directory of a site to more closely mimic the site as deployed on a production server. |
| DO you mean you want it to be on exactly the same domain as the production server would be on? Either edit the hosts file, or run a local DNS server. If you just want to use some sort of domain names, Linux usually supports multicast DNS of of the box (domain names are [computername].local). AFAIK the usual solutions for Windows is Apple's "Bonjour for Windows"
|
|
|