All image and other files should be from Apache and rest of the URL from Hybris(like split load). Could someone please help me to achieve the same.
The diagram below shows how the standard Hybris Commerce content serving approach, can be replaced with content serving from Apache:
The data/media directory holding the media content data, and the _ui directory for the solution is held on an NFS share available to the Apache webserver tier, as well as the Application tier.
An additional ApacheMediaUrlStrategy is created to rewrite media content URLs based on a filesystem pattern.
Additional Directories are added with no-jk mod_jk settings are added to the Apache configuration to manage the serving of content.
to Implement this solution just need to implement custom logic for MediaURLStrategy. Please follow the below link to customize it. https://cxwiki.sap.com/pages/viewpage.action?spaceKey=hybrisALF&title=Static+Content+Serving+from+Apache