<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Recent Posts in 'Reverse Proxy and hard-coded URLs in Flex' | Pragmatic Forums</title>
    <link>http://forums.pragprog.com/forums/44/topics/237</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <description></description>
    <item>
      <title>Reverse Proxy and hard-coded URLs in Flex posted by Brian Hogan @ Tue, 26 Feb 2008 16:28:08 -0000</title>
      <description>&lt;p&gt;Sorry but there&amp;#8217;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&amp;#8217;t work with hard-coded URLs. You need a true reverse proxy engine with html rewriting enabled, and even that&amp;#8217;s not going to be able to open up your swf files to replace &lt;span class="caps"&gt;URLS&lt;/span&gt;.  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.&lt;/p&gt;</description>
      <pubDate>Tue, 26 Feb 2008 16:28:08 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:44:237:2334</guid>
      <author>Brian Hogan</author>
      <link>http://forums.pragprog.com/forums/44/topics/237</link>
    </item>
    <item>
      <title>Reverse Proxy and hard-coded URLs in Flex posted by Christophe Bunn @ Fri, 25 Jan 2008 10:18:55 -0000</title>
      <description>&lt;p&gt;Hi,&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;ve set up several &amp;#8220;Production type&amp;#8221; environments using this book: &lt;strong&gt;Mongrel (x2) + Apache&lt;/strong&gt; in Win XP and &lt;strong&gt;Mongrel (x2) + Apache + &lt;span class="caps"&gt;IIS&lt;/span&gt;&lt;/strong&gt; in Win 2K3. It really helped me out.&lt;/p&gt;


	&lt;p&gt;Unfortunately, the proxy plugin used when forwarding requests from &lt;span class="caps"&gt;IIS&lt;/span&gt; to Apache won&amp;#8217;t work with my hard-coded URLs in a Flex interface&amp;#8230; How can I solve this problem?&lt;/p&gt;


	&lt;p&gt;Interestingly (I know nothing about how Reverse Proxying works&amp;#8230;), when I access the &lt;span class="caps"&gt;URL&lt;/span&gt; for a Rails function directly from the browser, instead of Flex code, it works correctly, as in:&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;&lt;a href="http://localhost/mytest"&gt;http://localhost/mytest&lt;/a&gt;&lt;/strong&gt;/my_class/my_function&lt;/p&gt;


	&lt;p&gt;where I would have accessed&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;&lt;a href="http://localhost:8080"&gt;http://localhost:8080&lt;/a&gt;&lt;/strong&gt;/my_class/my_function    with Apache alone&amp;#8230;&lt;/p&gt;


	&lt;p&gt;Cheers,&lt;/p&gt;


	&lt;p&gt;Chris.&lt;/p&gt;</description>
      <pubDate>Fri, 25 Jan 2008 10:18:55 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:44:237:2223</guid>
      <author>Christophe Bunn</author>
      <link>http://forums.pragprog.com/forums/44/topics/237</link>
    </item>
  </channel>
</rss>
