May be:<br><br>location ~ ^/shop { <br> rewrite ^/(.*) <a target="_blank" rel="nofollow" href="https://mydomain.com/$1">https://mydomain.com/$1</a> permanent; <br> } <br><br><div class="gmail_quote">On Fri, Feb 22, 2008 at 3:16 PM, Igor Sysoev <<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">On Fri, Feb 22, 2008 at 01:56:52PM +0100, Mustafa Toraman wrote:<br>
<br>
> Thank you for your quick reply Mr. Georgiev,<br>
><br>
> I start my nginx configured with ssl. It is accepting HTTPS requests<br>
> well. Btw i have no idea about rewrite to redirect diffrent requests on<br>
> ports with internal rewrite.<br>
><br>
> HTTP is accepting port 80 and SSL 443. So then i dont want to get load<br>
> with X2 requests with an external redirect.<br>
><br>
> So , what is the correct rewrite code for internet transfer? Simply how<br>
> to work announce.php request on SSL without any external rewrite.<br>
<br>
</div>Browser does SSL connection only if it see https:// protocol.<br>
If it connect to server using http:// the connection will be plain text.<br>
<div><div></div><div class="Wj3C7c"><br>
> Thank you!<br>
><br>
> Yordan Georgiev wrote:<br>
> > Hello,<br>
> ><br>
> > First start nginx with ssl support. HINT:<br>
> > <a href="http://wiki.codemongers.com/NginxHttpSslModule" target="_blank">http://wiki.codemongers.com/NginxHttpSslModule</a><br>
> > Second, use rewrite module for redirect. HINT:<br>
> > <a href="http://wiki.codemongers.com/NginxHttpRewriteModule" target="_blank">http://wiki.codemongers.com/NginxHttpRewriteModule</a><br>
> ><br>
> > On Fri, Feb 22, 2008 at 1:51 PM, Mustafa Toraman <<a href="mailto:lists@ruby-forum.com">lists@ruby-forum.com</a>><br>
> > wrote:<br>
> ><br>
> >><br>
> >> Simply how to work with ssl on a normal http address?<br>
> >><br>
> >> I'm ready to pay for that or say a thanks :)<br>
> >><br>
> >> Thank you for now!<br>
> >> --<br>
> >> Posted via <a href="http://www.ruby-forum.com/" target="_blank">http://www.ruby-forum.com/</a>.<br>
> >><br>
> >><br>
> ><br>
> ><br>
> > --<br>
> > С уважение,<br>
> > Й. Георгиев.<br>
> ><br>
> > WEB: <a href="http://gigavolt-bg.net/" target="_blank">http://gigavolt-bg.net/</a><br>
> > Blog: <a href="http://live.gigavolt-bg.net/" target="_blank">http://live.gigavolt-bg.net/</a><br>
><br>
> --<br>
> Posted via <a href="http://www.ruby-forum.com/" target="_blank">http://www.ruby-forum.com/</a>.<br>
><br>
<br>
</div></div><font color="#888888">--<br>
Igor Sysoev<br>
<a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>С уважение,<br>Й. Георгиев.<br><br>WEB: <a href="http://gigavolt-bg.net/">http://gigavolt-bg.net/</a><br>Blog: <a href="http://live.gigavolt-bg.net/">http://live.gigavolt-bg.net/</a>