Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 having issues connecting my virtual hosts. Here's my code. Is there anything missing here?

In httpd.conf

NameVirtualHost *
<VirtualHost *>
ServerName site1.local
DocumentRoot "/Users/Dan/Dropbox/Websites/www/site1"

In /etc/hosts

# Host Database
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##       localhost broadcasthost
::1             localhost
fe80::1%lo0     localhost       site1.local
share|improve this question
up vote 0 down vote accepted

Nothing was wrong here. I needed to change the default port on MAMP to 80.

share|improve this answer

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.