Setup Yum repo on foreman host


For simple POC work I'm running foreman in a VM. I'd like to setup a yum repo on the foreman host.

I've tried adding an entry to the /etc/httpd/conf directory, to add a new virtual host, but this doesn't seem to work. Is it possible to setup a virtual host to listen on a specific port, other than the default foreman one ?