I&#39;m trying to set up Apache to redirect to the Racket web server on port 8080. Originally after modifying my http configuration file to include the correct RewriteEngine and RewriteRule lines from <a href="http://docs.racket-lang.org/web-server-internal/Troubleshooting_and_Tips.html#%28part._.How_do_.I_use_.Apache_with_the_.Racket_.Web_.Server_%29">this page</a>, I got the following error message:<div>

<br></div><div><div><font face="&#39;courier new&#39;, monospace">[Thu Sep 15 21:43:19 2011] [error] (13)Permission denied: proxy: HTTP: attempt to connect to <a href="http://127.0.0.1:8080">127.0.0.1:8080</a> (*) failed</font></div>

<div><br></div><div>A quick google search gives that the problem might be in the SELinux security setting: <em style="font-size: 13px; font-family: &#39;Trebuchet MS&#39;; line-height: 19px; background-color: rgb(255, 255, 255); ">Allow HTTPD scripts and modules <span class="highlightedSearchTerm">to</span> <span class="highlightedSearchTerm">connect</span> <span class="highlightedSearchTerm">to</span> the network, </em>which I suppose is turned off. So I ran </div>

</div><br><div><font face="&#39;courier new&#39;, monospace">sudo /usr/sbin/setsebool httpd_can_network_connect 1</font></div><div><br></div><div>Now it appears to redirect (the racket web server logs show GET requests from 127.0.0.1), but now it appears to be stuck in an infinite redirect loop, resulting in the following Apache error message:</div>

<div><br></div><div><div><font face="&#39;courier new&#39;, monospace">[Thu Sep 15 21:57:49 2011] [error] (111)Connection refused: proxy: HTTP: attempt to connect to <a href="http://127.0.0.1:8080">127.0.0.1:8080</a> (*) failed</font></div>

</div><div><br></div><div>And an error page with <span style="color: rgb(119, 119, 119); font-family: Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; background-color: rgb(255, 255, 255); ">Error 310 (net::ERR_TOO_MANY_REDIRECTS)</span></div>

<div><br></div><div>Has anyone else encountered this problem? I can&#39;t figure out where the redirection is breaking down. There aren&#39;t any error messages in the racket error logs, just an unnaturally large number of GET requests from 127.0.0.1.</div>

<div><br></div><div>Regards,</div><div>Jeremy<br>
</div>