https://www.baeldung.com/linux/apache-web-server-two-ports
should work ..
perhaps you need to configure something similar in other ocs-inventory files.
z-ocsinventory-server.conf .. i do not know right now