How to transfer a normal HTTP request to HTTPS?

Hello all,

I am using nginx/0.5.35 + FastCGI. I need to transfer a normal http
request to ssl mode. For example;

I own a bittorrent tracker and i need to work with ssl on announces. So
then if someone trying to send an announce to http://domain/announce.php
then how can i transfer it to SSL mode? I dont want to change announce
URL but announce.php must work on SSL mode. Will it transfer this
request to ssl inside of the box? Or will it works on background?

Simply how to work with ssl on a normal http address?

I’m ready to pay for that or say a thanks :slight_smile:

Thank you for now!

Hello,

First start nginx with ssl support. HINT:
http://wiki.codemongers.com/NginxHttpSslModule
Second, use rewrite module for redirect. HINT:
http://wiki.codemongers.com/NginxHttpRewriteModule

On Fri, Feb 22, 2008 at 1:51 PM, Mustafa T. [email protected]
wrote:

Simply how to work with ssl on a normal http address?

I’m ready to pay for that or say a thanks :slight_smile:

Thank you for now!

Posted via http://www.ruby-forum.com/.


С уважение,
Й. Георгиев.

WEB: http://gigavolt-bg.net/
Blog: http://live.gigavolt-bg.net/

Thank you for your quick reply Mr. Georgiev,

I start my nginx configured with ssl. It is accepting HTTPS requests
well. Btw i have no idea about rewrite to redirect diffrent requests on
ports with internal rewrite.

HTTP is accepting port 80 and SSL 443. So then i dont want to get load
with X2 requests with an external redirect.

So , what is the correct rewrite code for internet transfer? Simply how
to work announce.php request on SSL without any external rewrite.

Thank you!

Yordan G. wrote:

Hello,

First start nginx with ssl support. HINT:
http://wiki.codemongers.com/NginxHttpSslModule
Second, use rewrite module for redirect. HINT:
http://wiki.codemongers.com/NginxHttpRewriteModule

On Fri, Feb 22, 2008 at 1:51 PM, Mustafa T. [email protected]
wrote:

Simply how to work with ssl on a normal http address?

I’m ready to pay for that or say a thanks :slight_smile:

Thank you for now!

Posted via http://www.ruby-forum.com/.


С уважение,
Й. Георгиев.

WEB: http://gigavolt-bg.net/
Blog: http://live.gigavolt-bg.net/

On Fri, Feb 22, 2008 at 01:56:52PM +0100, Mustafa T. wrote:

to work announce.php request on SSL without any external rewrite.
Browser does SSL connection only if it see https:// protocol.
If it connect to server using http:// the connection will be plain text.

May be:

location ~ ^/shop {
rewrite ^/(.*) https://mydomain.com/$1 permanent;
}

On Fri, Feb 22, 2008 at 3:16 PM, Igor S. [email protected] wrote:

Simply how to work with ssl on a normal http address?


Igor S.
Igor Sysoev


С уважение,
Й. Георгиев.

WEB: http://gigavolt-bg.net/
Blog: http://live.gigavolt-bg.net/