EJK
EJK

Reputation: 326

Accessing a localhost subdomain over a local network

I do a lot of my drupal site development on my mac using a stack. I have several subdomains for different variations of the site, etc. I'm trying to access these subdomains on other computers on our corporate network. I can access the default localhost configuration fine on other PC's (by simply navigating to my mac's IP), but not any of the subdomains (example testsite1.my.ip.address). I'm aware that I can edit the hosts file on the other PC's to trick it into connecting to the subdomain - however we have a LOT of computers, and I'm locked out of that directory most of the time. Is there any other way to connect to a localhost subdomain on my mac from another PC without editing the hosts file on that PC??

Upvotes: 0

Views: 3182

Answers (1)

Sean Perry
Sean Perry

Reputation: 3886

Using a name means you need working DNS somewhere. This is what editing the hosts file is doing it is spoofing DNS for you. You need to setup a DNS server somewhere that you can control or you get to muck with host files.

Upvotes: 1

Related Questions