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'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"
</VirtualHost>

In /etc/hosts

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       localhost
255.255.255.255 broadcasthost
::1             localhost
fe80::1%lo0     localhost

127.0.0.1       site1.local
share|improve this question

1 Answer 1

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

 
discard

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.