Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using MAMP.

My httpd.conf:

NameVirtualHost *

<VirtualHost *>
   DocumentRoot "/Applications/MAMP/htdocs"
   ServerName localhost

<VirtualHost *>
   DocumentRoot "/Applications/MAMP/test"
   ServerName test

My hosts: localhost test

On my local machine I can access the htdocs folder with "localhost" and and the test folder with "test".

When I feed the browser of another device in my local network with the IP Address I get the htdocs folder.

How to access the test folder from other devices in my local network?

share|improve this question

Link hostname test with LAN-IP, resolvable for other lan-hosts

Or create virthost with name equal to IP and symlink it's DocumentRoot to test folder

share|improve this answer
How to link hostname "test" to a LAN-IP? – Aron Woost Oct 21 '11 at 21:09
DNS for lan-ips or add to every hosts-file – Lazy Badger Oct 21 '11 at 22:37
Hosts files not an option. How to DNS for LAN-ips? – Aron Woost Oct 22 '11 at 8:06
Start DNS-server for LAN and add this server as first into resolvers list on every host – Lazy Badger Oct 22 '11 at 21:28

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.