No, don't put in inside your VirtualHost directive for mymoodleIPaddress:81, otherwise you won't get the benefit of if (everything that's specified inside a VirtualHost is only available once you've connected to the IP and port specicifed for that VirtualHost, which is precisely what you want to avoid).
Put it inside the VirtualHost directive for your moodleIPaddress and port 80.
Saludos. Iñaki.
General developer forum
access IP
This discussion has been locked so you can no longer reply to it.