I am having trouble setting up a virtual host on Mavericks

First I have this uncommented:

# Virtual hosts
Include /private/etc/apache2/extra/httpd-vhosts.conf

I have my virtual host set up as like so:

<VirtualHost *:80>
    DocumentRoot "/Users/aaronhappe/Sites/learning-laravel/public"

And this is my hosts file:   localhost broadcasthost
::1             localhost 
fe80::1%lo0 localhost

However, when I go to, instead, I see a directory structure exactly the same as if I would go to my local host, rather than my home view to laravel.

Any ideas as to what is wrong?

No correct solution


Did you restart your local server?

sudo apachectl restart

You may try something like this:

    DocumentRoot "/Users/aaronhappe/Sites/learning-laravel/public"

Host file entry: # or, an unique IP

Restart apache. Another similar answer.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top