homepage Welcome to WebmasterWorld Guest from 54.205.205.47
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe and Support WebmasterWorld
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
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"

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved