Hello Drupal folk,
This one is aimed at those who have a mac and use a virtual host to make their drupal sites.
I have followed the steps in this tutorial: http://www.entityarts.net/blog/steve_krueger/07-19-2007/virtualhosts_mam...
And tried to do some research but it all pretty much follows the same set up.
I have also set MAMP to use port 80 (8889 for MySQL) so I don't have to type the port number as well.
What I want
My localhost root I want to be is: /User/imac/foo
I would like my site "root" (say www.domain.dev) to be: /User/imac/foo/site
follow the steps in the tutorial
My httpd.conf file
/Applications/MAMP/conf/apache/httpd.conf
Have added at the bottom of the file
<VirtualHost 127.0.0.1>
DocumentRoot /Users/imac/foo
ServerName localhost
</VirtualHost>
<VirtualHost *>
DocumentRoot /Users/imac/foo/site
ServerName www.domain.dev
</VirtualHost>
My hosts file
(/private/etc/hosts)
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
127.0.0.1 www.mydomain.dev
And it seems as if the addresses are reversed when I visit http://localhost/ it shows the hello word file (from the site folder). When I visit www.domain.dev I am shown the file structure from the foo folder.