Ever since I started using Vhosts with MAMP, page requests have been quite slow. It takes 3 to 5 seconds or more to process a page request. I'm wondering if it's the way my hosts
or vhosts
files are setup:
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 mysite.local www.mysite.local
127.0.0.1 anothersite.local www.anothersite.local
httpd-vhosts.conf
NameVirtualHost *:80
<VirtualHost *:80>
ServerName mysite.local
ServerAlias www.mysite.local
DocumentRoot /Users/username/Sites/mysite.local/
<Directory /Users/username/Sites/mysite.local/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName anothersite.local
ServerAlias www.anothersite.local
DocumentRoot /Users/username/Sites/anothersite.local/
<Directory /Users/username/Sites/anothersite.local/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
Your help is greatly appreciated!