What is a Laravel vhost file and what is it for?

A mate of mine has told me to look up Laravel vhost file. I assume it is so that Apache can render the website for me before I view it or something, but to be totally honest I am baffled.

What is this vhost file for? How do I get it to work?

Answers


There is no official Laravel VHost file, just an official Laravel .htaccess file:

You going to see a lot of vhosts files around the Internet, but, basically what your vhost file should have is a pointer to the /public folder, so it should look something like:

<VirtualHost *:80>
    ServerName yourdomain.net
    DocumentRoot /var/www/yourdomain/public

    <Directory /var/www/yourdomain>
        Options All
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

Need Your Help

Tracking object retain calls

objective-c memory-management memory-leaks retaincount

How do I track what is retaining my object? I have an object that isn't delloc-ing as expected when it is removed from a list. My suspicion is that something is incrementing the retain count, so I'...

Why MSDN mentions to override the Finalize() method?

c# msdn finalize

Since my first lessons about C# classes I've learned that not only I cannot invoke the Finalize() method of a class explicitly(it is called by the Garbage Collector), but I'm not even allowed to