I'm trying to setup on ubuntu, virtualhosts on different ports, but I can get it work. My configuration in sites-available looks like
NameVirtualHost 127.0.0.1:5050 Listen 5050 <VirtualHost 127.0.0.1:5050> ServerName localhost DocumentRoot "/var/www/example" <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/example/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> </VirtualHost> and I added to the host file
127.0.0.1:5050 localhost
hostsfile accepts that kind of notation? I've never seen anything like it. What happens if you open127.0.0.1:5050?