views:

12

answers:

0

Hi all,
I have a specific set for my websites.

  • Apache on port 80
  • stunel on 443 forwards decrypted msg to 80
  • stunel on 2222 forwards encrypted to 443
  • WAN-> NAT 443 -> stunel:443
  • WAN-> NAT 80 -> stunel:2222

This obviously uses "WAN ssl" only for connections on port 443 from WAN.
Is apache mod_rewrite able to force http:// like url to connect with stunel on port 443 (invoking https://...)?
If yes any advice welcomed.
If no, can this be achieved with apache proxy mod or etc?
I don't want to use mod_ssl yet.

ps. Please don't throw this to stackadmin or whatever it's called.

thanks in advance