I have a Ubuntu from Linode.com. I'm trying to host multi website ( domains, each will listen to different ports ). Here is what I did: In file mysite.com.conf:
Listen *:81
<VirtualHost *:81>
ServerName mysite.com
ServerAlias www.mysite.com
</VirtualHost>
In file ports.conf
Listen *81
Then run command in terminal:
sudo a2ensite mysite.com.conf
sudo service apache2 restart
Then I setup DNS Manager for domain mysite.com But when I visit mysite.com from browser, it always listen to port 80. So when I setup multiply Virtual Host file as above, for different domains, All of them just route to port 80. Do you know which step I missed and how to tell Apache to redistribute to different port according to incoming domains name ? I followed tutorial here.