Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2795

Virtual host alias doesnt work but localhost:80 does

$
0
0

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


Viewing all articles
Browse latest Browse all 2795

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>