Running Snow Leopard, I have enabled the build in apache(with indexing) and php, and installed and enabled mysql. I have setup my sites in the
~/Sites directory, named:
It all works,
localhost shows the index linking to them.
Now I want to set up virtual hosts in the most simple way. I would like that typing
www.site1.dev in the url bar serves me the site in that directory.
So I outcommented the include vhosts rule in the
httpd.conf file, and in the
httpd-vhosts.conf pasted this code based on the apache docs:
NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot /Users/me/Sites UseCanonicalName off VirtualDocumentRoot /Users/me/Sites/%0 AllowOverride All RewriteEngine On </VirtualHost>
Yet my browser can't find the server. What am I doing wrong? I did notice that in my sharing system prefs the IP my ISP gives me, and their domain is included in the link created there to access my sites folder. I would expect a simple localhost there not an ipaddress....