I've set up virtual hosting on my computer. My file structure looks like this:
I've set up a virtual host for each of the four: localhost, blog, test1, test2.
If I place an index.html page in any of these four and point to it with my browser (ie...http://localhost, http://blog, http://test2, or http://test2) I see my index page accordingly. However, once I install WordPress files into /localhost/blog I begin getting redirected from http://blog to http://localhost.
I tried the solutions mentioned below but then I start getting php errors.