Generic-user-small Christophe Bunn 3 posts

Hi,

I’ve set up several “Production type” environments using this book: Mongrel (x2) + Apache in Win XP and Mongrel (x2) + Apache + IIS in Win 2K3. It really helped me out.

Unfortunately, the proxy plugin used when forwarding requests from IIS to Apache won’t work with my hard-coded URLs in a Flex interface… How can I solve this problem?

Interestingly (I know nothing about how Reverse Proxying works…), when I access the URL for a Rails function directly from the browser, instead of Flex code, it works correctly, as in:

http://localhost/mytest/my_class/my_function

where I would have accessed

http://localhost:8080/my_class/my_function with Apache alone…

Cheers,

Chris.

 
Generic-user-small Brian Hogan 6 posts

Sorry but there’s no way to handle that using the method outlined in this book. The documentation for the reverse_proxy_fix plugin specifically says it doesn’t work with hard-coded URLs. You need a true reverse proxy engine with html rewriting enabled, and even that’s not going to be able to open up your swf files to replace URLS. Perhaps you can pass the full server path to your Flex app in a variable and dynamically construct your links in the Flex app? I know of no other way.

2 posts, 2 voices