How to create virtual host for laravel 5 project

I’m using Laravel 5 for project development and I trying to configure virtual hots on wampserver.

I have changed httpd-vhost file like this:

<VirtualHost *:80>
    ServerAdmin khudadadrs@gmail.com
    DocumentRoot "F:/Projects/college/public"
    ServerName www.college.edu
    <Directory "F:/Projects/college/public">
        Options Indexes FollowSymLinks
        AllowOverride all
        # onlineoffline tag - don't remove
        Order Deny,Allow
        Deny from all
        Allow from 127.0.0.1
    </Directory>
</VirtualHost>

The hosts file looks like this:

127.0.0.1 127.0.0.1 www.college.edu

The problem is, when I navigate to url: www.college.edu I’m getting back to the localhost of wampserver not to my project.
I don’t know what’s wrong.


Source: wampserver

Leave a Reply