Running AEM alongside other apps
There's a requirement to serve some of the pages of a website from AEM (with apache / dispatcher in the front) and some of the pages from a legacy app (with a non-AEM server stack and a non-apache web server in the front).
What would you say is the best way to achieve this?
I know one of the ways is to probably use sub-domains / directories and have virtual hosts set up on apache for AEM and non AEM sections of the site and forward requests meant for the non-AEM pages to the other server. Will this work since one of the virtual hosts is a different server altogether?
Any other approaches that has been tried by others here and that may be more optimal?
Any inputs are highly appreciated. And since this can be a common use case it may help others with the same requirement too.
Thanks in advance.