i use XAMPP 7.2.4 and i have virtualhost.
by default typing a localhost should redirect to localhost/dashboard according to your app and if we click on Application link we go to apps.
Till i did not set virtualhost, basically on my local machine, everything was ok. Since i set up my virtualhost, all request are redirected to virtualhost and therefore generate an error:
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
if you want to access to virtualhost, you can type the virtualhost name (in my case: test.com.local) and you are correctly redirected to directory stored in /var/www/test.com.local
so where is my mistake when i want to access to localhost/dashboard and it does not work ?
here is my vhost.conf file extract:
- Code: Select all
<VirtualHost test.com.local:80>
DocumentRoot "/var/www/test.com.local"
ServerName www.test.com.local
ServerAlias test.com.local
<Directory "/var/www/test.com.local">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride None
Require all granted
</Directory>
ErrorLog "logs/test.com.local.com-error_log"
CustomLog "logs/test.com.local.com-access_log" common
</VirtualHost>