Apache Multiple virtual hosts listening on the same custom port #96


In this tutorial you will learn how to setup multiple virtual hosts listening on the same custom port in Apache. You will learn how to create 4 different virtual hosts: 2 using the default :80 port and 2 using the custom :8000 port using the “Listen” and “Include” Apache directives.

Code used during this tutorial:

Useful links:
https://httpd.apache.org/docs/2.4/vhosts/examples.html
https://httpd.apache.org/docs/2.2/en/mod/core.html#include