Redirect HTTPS request to HTTP WITHOUT SSL running ?

Redirect HTTPS request to HTTP WITHOUT SSL running ?

am 05.06.2007 23:51:56 von Christian

a little weird question ...
This is using Apache 2.2

I would like to get all the traffic coming over to my site from HTTPS
to HTTP
but I don't want to have SSL running.

The situation is that I had my site running on a PC server and moved
it over to a slug (Linksys NSLU2) and I don't need/want SSL anymore
for that.

But I still have users with bookmark with HTTPS in it and I want to
redirect them to HTTP instead.

I can make it work with SSL running (either Rewrite rules or
VirtualHost) but I don't want SSL installed to save resource on the
little unit.

Thanks
Christian

Re: Redirect HTTPS request to HTTP WITHOUT SSL running ?

am 06.06.2007 08:32:09 von unknown

Post removed (X-No-Archive: yes)

Re: Redirect HTTPS request to HTTP WITHOUT SSL running ?

am 06.06.2007 19:22:29 von Christian

On Jun 5, 11:32 pm, Davide Bianchi
wrote:
> On 2007-06-05, Christian wrote:
>
>
>
> > I would like to get all the traffic coming over to my site from HTTPS
> > to HTTP but I don't want to have SSL running.
>
> That's a catch-22 situation, in order to see which request, you need
> to decrypt the request, but you can't do it without ssl.
>
> Davide
>
> --
> Besides, I think Slackware sounds better than 'Microsoft,' don't you?
> -- Patrick Volkerding

I see, that's what I figure out.
Now I was trying with Custom error, when I try to access the HTTPS I
get
this in the error_log: Invalid method in request \x16\x03\x01

and in the access log : [06/Jun/2007:10:06:42 -0700] "\x16\x03\x01"
302 221

Any chances I could use the custom error to show a page to tell the
user to update the bookmark for example ?

Thanks
Christian

Re: Redirect HTTPS request to HTTP WITHOUT SSL running ?

am 06.06.2007 19:46:17 von unknown

Post removed (X-No-Archive: yes)

Re: Redirect HTTPS request to HTTP WITHOUT SSL running ?

am 06.06.2007 20:17:30 von Christian

On Jun 6, 10:46 am, Davide Bianchi
wrote:
> On 2007-06-06, Christian wrote:
>
> > and in the access log : [06/Jun/2007:10:06:42 -0700] "\x16\x03\x01"
> > 302 221
>
> Well... it could work, try to intercept the error 302, I think is
> quite an ugly way to do it anyway. But if it works for you...
>
> Davide
>
> --
> Beat me, whip me, make me use Windows!

I agree it would be ugly, but...

I tried and still doesn't work.. the error doesn't get sent back with
my custom file.
I made sure my custom error were working using a test on 404 and that
works, just doesn't work for the 302...

Re: Redirect HTTPS request to HTTP WITHOUT SSL running ?

am 07.06.2007 19:06:23 von nuke

Davide Bianchi wrote:
> On 2007-06-05, Christian wrote:
> >
> > I would like to get all the traffic coming over to my site from
> > HTTPS to HTTP but I don't want to have SSL running.
>
> That's a catch-22 situation, in order to see which request, you need
> to decrypt the request, but you can't do it without ssl.

Nonsense, mod_rewrite should still be able to see the RAW _request_ as
usual, just not the _content_ or _header_

Re: Redirect HTTPS request to HTTP WITHOUT SSL running ?

am 07.06.2007 22:19:28 von Christian

On Jun 7, 10:06 am, "tony.p" wrote:
> Davide Bianchi wrote:
> > On 2007-06-05, Christian wrote:
>
> > > I would like to get all the traffic coming over to my site from
> > > HTTPS to HTTP but I don't want to have SSL running.
>
> > That's a catch-22 situation, in order to see which request, you need
> > to decrypt the request, but you can't do it without ssl.
>
> Nonsense, mod_rewrite should still be able to see the RAW _request_ as
> usual, just not the _content_ or _header_

Any suggestion on writing the rule ?