Hi,
we usually put a web server or a reverse proxy in front of MapStore and GeoServer on separate VMs or docker images.
Generally speaking having different servers (or VMs, or dockers) for the web server and MapStore/GeoServer helps to:
- keep things separated
- better handle security (the applications are not directly exposed to the internet, if needed)
- manage HW resources
- switch services by replacing VMs
It is suggested in general but it is not mandatory to have them on separate servers.
Using a central web server / reverse proxy to expose both GeoServer and MapStore (e.g. on /geoserver/ and /mapstore/ ) allows to:
- use the same domain name, avoiding same origin policy restrictions issues
- handle SSL setup for HTTPS in a single point
anyway most of the things depend on your specific requirements