Hi,
I want to create multiple sites without editing my hosts file.
The sites are completely different and they have separate databases.
so I want to access the first as:
http://localhost/site1
and the second as
http://localhost/site2
I would like the folder hierarcy to be:
.../htdocs/sites/site1
.../htdocs/sites/site2
As I said the two sites are not related and each uses a different database (i.e. codebase).
I am running on OSX 10.7 with XAMPP.
I have not see anywhere a documentation explaining how to do this without editing the hosts file.
I don't want to edit my hosts file.
I pretty much like it the way it is.
I tried fiddling with the httpd.conf and virtual directories and hosts. No joy there.
I tried messing with sites.php. Still no joy.
I tried copying drupal entirely to site1 and site2. install.php redirects me to localhost/install.php.
Is there a way to do this ?
Oh and I need to disable access to http://localhost.
I don't want anyone installing a dupal site there by mistake.
Many thanks in advance,
Tomarsh









