Won't Run on Different Port

I thought there was a way to run on different ports. I’ve been reading multiple howto topics, but none of say instructions how to directly do it with apache. I did throe get discourse running on a VM so it seems it is working.