On my local machine I have several named virtual hosts set up in apache, all on port 80.
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "/site1"
ServerName http://site1.local
<Directory "site1" >
Options +Includes
Order Deny,Allow
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/site2"
ServerName http://site2.local
<Directory "site2" >
Options +Includes
Order Deny,Allow
Allow from all
</Directory>
</VirtualHost>
For testing on mobile devices I need these sites to be reachable via my machine's IP address, in which case the first virtual host declared is the default. I assume I need to set up something with listening on different ports in order to be able to access multiple virtual hosts on the same IP address, but I've tried quite a few variations and can't get it so using the port works remotely but the name still works locally.
How do I set up multiple virtual hosts which are both named and listened to on different ports. Is this even possible?