Click to See Complete Forum and Search --> : How to switch between multiple websites on Apache localhost?


charlesdavison
11-21-2005, 05:01 AM
I am looking for an Apache install that lets me develop locally on my machine and easily switch between websites so that http://localhost takes me directly to the home directory for the website.

I need this so that URL references like '/images' work as expected and don't need to be changed for the real website.

So far I have only been able to set up aliases such as http://localhost/website1 and http://localhost/website2, but this screws up the way the URLs work.

Does anyone know of any way of easily doing this, or better yet a mini app that switches over for me? When using IIS server I can do this; just looking for an Apache alternative.

I've tried installs of EasyPHP and XAMPP - anyone recommend any other Windows/Apache/MySQL/PHP installers?

Thanks!