I installed XAMPP about six months ago and learned how to create virtual hosts. If I remember correctly, the folder apache > htdocs is supposed to be in the same folder as your websites, but I wanted to keep XAMPP and my websites in separate locations...
C:\xampp\
C:\sites\
...so I copied htdocs and pasted it inside C:\sites\
It worked great; I could create my websites at http://mysite/ The only problem was that I could no longer access XAMPP's home page at http://localhost/ However, I figured out a new URL to access the page.
About a week ago, my computer crashed, and I'm now reinstalling all my software and trying to reconfigure virtual hosts. I downloaded the latest version of XAMPP (great job!). I still have a copy of my original apache > conf file, so I copied my virtual host settings and pasted them into my new conf file. Then I restarted my computer and pasted a copy of htdocs into C:\sites\
It's sort of working; I can preview my websites at http://localhost/geobop/, etc. However, I want to preview them at http:/geobop/
One other twist is that xampp is no longer at C:\xampp\
It's now at C:\apachefriends\xampp\ (I tried installing XAMPP to C:\xampp\, but it wouldn't work.
Before this gets even more confusing, let me summarize what I'd like eto do:
1. Keep my websites at C:\sites\
2. Keep XAMPP at C:\apachefriends\xampp\ (Or C:\xampp\, which would be even better)
3. Be able to preview my websites at http://mysite/
4. Stll be able to access XAMPP at http://localhost/
Can I do all of these, or do I have to make some compromises? If it's doable, how can I do it?
Thank you.