(Tips) VirtualHost's on MAMP, WAMP, XAMMP | Great for Drupal Multisite
Tips : VirtualHost's on MAMP, WAMP, XAMMP | Great for Drupal Multisite
I wrote a little tutorial on setting up your hosts file and vhosts, this can easily be transfered to the all-in-one package of your liking or whatever else it is. This one was meant for OSX and MAMP but all files such as httpd.conf and hosts can be transfered from PC and MAC as well as MAMP, WAMP, XAMP, etc... hope it saves you a headache!
This setup will allow you to create virtual hosts on your local machine
which will benefit in a multisite setup with Drupal.
1. Open your httpd.conf
This file will reside in /Applications/MAMP/conf/apache/httpd.conf .
2. Go to the bottom of httpd.conf until you find a header that looks similar to this:
<VirtualHost 127.0.0.1>
DocumentRoot /Applications/MAMP/htdocs
ServerName localhost
</VirtualHost>
Add a new Virtual host underneath this one:
<VirtualHost *>
DocumentRoot /Applications/MAMP/htdocs/path/to/folder
ServerName yoursitename.local
</VirtualHost>
Courtesy : Entityarts.net
- guru's blog
- Login to post comments
![Drupal-6-Book-[Building Powerful and Robust Websites with Drupal 6].jpg](http://www.drupalranch.com/images/Drupal-6-Book-[Building%20Powerful%20and%20Robust%20Websites%20with%20Drupal%206].jpg)