Im trying to set up virtual hosts via apache2 on WSL2.I have my webpage working properly by http://localhost:80 but not under http://myalias.local
I have positive response for ping myalias.local
in ubuntu console
etc/hosts from windows
# localhost name resolution is handled within DNS itself.127.0.0.1 localhost ibexa33v1.local::1 localhost ibexa33v1.local
etc/hosts from ubuntu
127.0.0.1 localhost myalias.local::1 localhost myalias.local
Ports in ports.conf is addedConf for vhost is created
<VirtualHost *:80> ServerName myalias.local ServerAlias imyalias.local DocumentRoot /home/myuser/myalias/public DirectoryIndex index.php
I tried:Restarting apache, mariadb,Double checked the alias spelling,Alias for virtual host using Apache2