yes , you answered yourself. Here's a generic configuration
Server configuration
# Ensure that Apache listens on port 80
Listen 80
# Listen for virtual host requests on all IP addresses
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot /www
ServerName www.example1.com
# Other directives here
</VirtualHost>
<VirtualHost *:8090>
DocumentRoot /www/folder
ServerName www.example2.org
# Other directives here
</VirtualHost>
I am considering www.example2.org and www.example1.com pointing to 127.0.0.1 ie. localhost