I've made the vhost to show laravel project in it. But instead its showing me the list of content of laravel project, not running it. For testing I generated a new laravel project and in that even i could see the file listing of public directory. Here's my vhost code:
<VirtualHost *:80>
ServerAdmin wosomtest.com
ServerName wosomtest.com
ServerAlias wosomtest.com
DocumentRoot "/usr/local/var/www/wosom/public"
<Directory "/usr/local/var/www/wosom/public">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
ErrorLog "/Applications/AMPPS/apps/apache/logs/error.log"
CustomLog "/Applications/AMPPS/apps/apache/logs/access.log" combined
</VirtualHost>
Code inside .htaccess of public folder:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ index.php [L]
</IfModule>
Getting no error inside the storage/logs.
Here's what I'm seeing:
