The problem:
On my local machine only, I want to enter the URL homepage.local and I want it to open my local webpage index.html
found in my local directory /Users/prime/Homepage/
. I thought I could achieve this by using the below vhost configuration but it doesn't seem to work.
Added the following to my httpd.conf file
<VirtualHost *:80>
ServerName homepage.local
ServerAlias *.homepage.local
DocumentRoot "/Users/prime/Homepage/"
</VirtualHost>
and when I go to my web-browser and enter the URL homepage.local
it does not resolve to my webpage /Users/prime/Homepage/index.html
Any ideas? I can't see anything in the apache error logs.
$ apachectl -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80 homepage.local (/private/etc/apache2/httpd.conf:533)
I am on OSX (Snow Leopard).