Reputation: 329
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?
Upvotes: 0
Views: 75
Reputation: 87779
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>
Upvotes: 2