I have my localhost, with the document root say at: "E:/app/SymLink_DoNotDelete/". Within that directory, I have several subdirectories, including E:/app/SymLink_DoNotDelete/overheard. If I just entered "http://localhost" in my browser, I got the localhost directory listing. If I typed http://localhost/overheard, I got the webpage in the "overheard" directory.
But I wanted to be able to access the "overheard" site by just entering "http://overheard", for various obvious reasons. So I tried virtual hosts.
I've got virtual hosts working (sort of) on my local development version of Apache -- that is, when I type in the URL http://overheard, I get the appropriate webpage.
However, now http://localhost also gives the contents of the "overheard" subdirectory, so I did something wrong. Here is the entry I made in my httpd.conf file, at the end:
- Code: Select all
Can anyone tell me how to get my original localhost back (to my document root), while still keeping my virtual host "Overheard" pointing to the overheard directory?