Virtualhost not working on different port

As Inigo Flores already pointed out, this is default apache behavior.

By typing second-site.com in your browser, it will always connect to port 80. If you want to access a different port, you need to specify it in the url like second-site.com:8080

If you want to access your site like second-site.com, there is no point in using different ports.

Leave a Comment