I try to access it through my windows browser and fail. what is my mistake?
I use WSL2 on windows 10, with ubuntu 20.
I have an apache server and a laravel app which I installed at /var/www/law
In my windows hosts file I've added this:
127.0.0.1 law.dev
::1 law.dev
and this is the law.conf
file which is located at /etc/apache2/sites-available
.
<VirtualHost *:80>
ServerName law.dev
DocumentRoot /var/www/law/public
<Directory /var/www/law>
Options Indexes MultiViews
AllowOverride None
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>