Integration of Meteor Apps behind an Apache Reverse Proxy


#1

I’m new to Meteor. I write 2 small applications to deploy under the paths /app1 and /app2 (examples) in our “portal”. The website use Apache and I wrote some rewrite_rules to redirect the flow.

I had the very bad surprise to see absolute uri in the body of my Meteor apps like this:

I find some solution in this article: http://serverfault.com/questions/561892/how-to-handle-relative-urls-correctly-with-a-reverse-proxy/561897#561897

I cannot believe that a so new framework has this kind of limitations!
My applications are based on “Todo Apps with Angular” https://www.meteor.com/tutorials/angular/creating-an-app

Please, I need your help. What I miss? How to transform absolute to relative url?
Thanks
Hoj

PS: I know that other HTTP Proxy are better for Meteor, but my company use Apache, and will not change.