The AllowOverride
directive is per-directory, thus putting it randomly in Apache's configuration file won't work.
Create a new Directory
block for the public
directory in your Laravel installation, and put the AllowOverride All
in there, like so :
<Directory "/path/to/your/laravel/public">
AllowOverride All
</Directory>
Also if you're only hosting a single Laravel installation there is no need to use a virtual host like you did, just change the existing DocumentRoot
directive and Directory
block to both point to your Laravel's public directory, and add the AllowOverride All
in that directory block.