Forums Drupal

Multi site, vhosts, and BitNami

Subscribe to Multi site, vhosts, and BitNami 2 post(s), 2 voice(s)

 
Avatar cliffy 1 post

Hi,

I’m using the drupal stack on MacOS X. I run multiple drupal sites locally on my development system. How should I configure the virtual hosts so that I can use:

x.localhost

where x is a variable representing the name of the site.

TIA,

cliffy

 
Avatar antonio Administrator 487 post(s)

Hi, you will need to change apps/drupal/conf/drupal.conf to something like

# Listen for virtual host requests on all IP addresses
NameVirtualHost *:8080
<virtualhost>
DocumentRoot /Users/antonio/drupal-6.2-0/apps/drupal/htdocs
ServerName drupal.localhost
</virtualhost>

Using different virtual hosts for each drupal site. More examples at http://httpd.apache.org/docs/2.0/vhosts/examples.html

Also, you will need to change /etc/hosts to make drupal.localhost point to your localhost, as in

127.0.0.1 drupal.localhost

Cheers

Forums Drupal