<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">rewrite ^/(.*)$ http://$1;<DIV><BR class="khtml-block-placeholder"></DIV><DIV>I think you might also want to parse the contents and replace the links, ie.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><A href="http://hotmail.com/login">http://hotmail.com/login</A></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>to</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><A href="http://proxy.yourdomain.com/hotmail.com/logi">http://proxy.yourdomain.com/hotmail.com/logi</A></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>to make sure that hardcoded links don't break the proxying.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Someone else can continue from here, I've never done proxying like that. What happens to domain specific cookies etc?</DIV><DIV><BR class="khtml-block-placeholder"><DIV><DIV><DIV>Tony Lewis kirjoitti 6.9.2007 kello 16:03:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">  <FONT face="Verdana">I would like to use nginx as an open proxy, using regular expressions to get to any URL.<BR> <BR> For example, if I browse through nginx through a URL like:<BR>     <A class="moz-txt-link-freetext" href="http://proxy.mydomain.com/hotmail.com">http://proxy.mydomain.com/hotmail.com</A><BR> <BR> then nginx will proxy to <A class="moz-txt-link-freetext" href="http://hotmail.com">http://hotmail.com</A><BR> <BR> I tried working with the rewrite rule, but the best I could get was getting it to try and serve me the file /usr/local/nginx/html/<A class="moz-txt-link-freetext" href="http://hotmail.com">http://hotmail.com</A>.<BR> <BR> Can it be done?  Can someone steer me in the right direction?<BR> <BR> Thanks,<BR> <BR> Tony<BR> </FONT>  </BLOCKQUOTE></DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>Ystävällisin terveisin,</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Riku Räisänen</DIV><DIV>HelloIT</DIV><DIV>Profian Oy</DIV><DIV><A href="mailto:riku@helloit.fi">riku@helloit.fi</A></DIV><DIV>+358 400 882030</DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN></SPAN> </DIV><BR></DIV></DIV></BODY></HTML>