Well your virtual host obviously is set up to react on ‘localhost’.
You’ll have to set up DNS records, ssl certificates and adjust your virtual host accordingly.
We have a section about that in our documentation:
https://docs.zammad.org/en/latest/getting-started/configure-webserver.html
It won’t be able to explain everything in finest detail though.