Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I want to run an apache web server on a machine running OS X, with the server running on a small intranet LAN with no internet connection. I've set up web sharing and the web server is now accessible from other machines on the LAN using the custom name a.local - but what I would like to do is remove the .local part if possible. Does anyone know how i would go about configuring this in OS X? I wasn't sure if it would be the apache httpd.conf file or some DNS config that would be required.

share|improve this question
add comment

2 Answers

If you haven't a local DNS server running somewhere in your network (many routers offer this functionality), the only way would be to enter the IP address and host name in the hosts file of every computer in question.

The .local part is coming from Bonjour, by the way. And without Bonjour, you could access the machine only with it's IP address.

share|improve this answer
add comment

i guess you could set up dns to host both domain "a" and machine "a" but that seems quirky to me. i would probably approach it this way: 1) configure dns for your network so that your server is called something like "a.nickyco.private" 2) in server admin, set up a website for "a.nickyco.private" 3) set up DHCP to provide a "search domain" to the clients of "nickyco.private" 4) you're done. you should be able to type "http://a" on the clients, and it will show you the website for "a.nickyco.private"

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.