I'm on OS X 10.6.8.
I had two virtual hosts set up on my machine,
Here's the Virtual Hosts file:
<VirtualHost *:80> DocumentRoot "/Users/myusername/Sites/site1" ServerName site1.local </VirtualHost> <VirtualHost *:80> DocumentRoot "/Users/myusername/Sites/site2" ServerName site2.local </VirtualHost>
The hosts file points both
127.0.0.1. It also points
Everything worked great until this morning, when I installed WordPress onto site1. I enabled mod_rewrite to get the nice URLs that WordPress makes.
Then I went to check on
site2.local, and it started downloading the index page. It won't display the index page, which is index.php, and instead will insist on downloading it.
I also noticed that
127.0.0.1 now go to different places,
localhost going to my user Site root, and
127.0.0.1 pointing to
I've been troubleshooting for two hours now, am thoroughly confused and reaching the point of throwing my laptop against the wall.
Is there something really obvious that I'm missing?
Disabling mod_rewrite and FollowSymLinks did nothing.
AddType application/x-httpd-php .php to the .htaccess of site2 did nothing either.
httpd: Could not reliably determine the server's fully qualified domain name, using n.local for ServerName VirtualHost configuration: wildcard NameVirtualHosts and _default_ servers: *:80 is a NameVirtualHost default server site1.local (/private/etc/apache2/extra/httpd-vhosts.conf:27) port 80 namevhost site1.local (/private/etc/apache2/extra/httpd-vhosts.conf:27) port 80 namevhost site2.local (/private/etc/apache2/extra/httpd-vhosts.conf:32) port 80 namevhost localhost (/private/etc/apache2/extra/httpd-vhosts.conf:37) Syntax OK