In your published content there is a front\hemi folder that contains the content gateway and configuration files. The contents of this folder must be placed at a location that meets the following requirements:
For example, if the URL to access your portal is
http://netweaverportal.mycompany.com:50000/irj/portal
then the location where you place the gateway and configuration files may be something like:
http://help.myco.com:50000/gateway/hemi/.
If the content is published to a server in the same domain as the portal, it is not necessary to copy the gateway files to another location.