http to https redirection

From: MEßNER Arthur,Ing.Mag. <Arthur.MEssNER#tilak.at>
Date: Mon, 19 Dec 2011 15:37:55 +0100


hello,

is there any method to do http to https redirection with variable Location

my configuration:

frontend someserver-clear

      bind 10.16.246.9:80
	acl clear      dst_port  80
	redirect location https://someserver.somedomain/ if clear

it works but redirects something like this

http://soemserver.somedomain/login/index.html

to https://someserver.somedomain/
- no path

is there any way to replace only http to https in redirect, and letting path etc the same ?

the problem is with apache 301 redirections in the same protocol, and the protocol for apache is always http.

something like

https://someserver.somedomain/login apache redirects to
http://someserver.somedomain/login/ which haproxy redirects to
https://someserver.somedomain/ 




__________________________________________________
Ing.Mag. Arthur Meßner
IT-Systembetrieb
Abteilung Informationstechnik
TILAK - Tiroler Landeskrankenanstalten GmbH Landeskrankenhaus Innsbruck (Universitätskliniken) Anichstraße 35 | 6020 Innsbruck, Austria Tel.: +43(0)50 504-25534 | Fax: -6725534 E-Mail: arthur.messner#tilak.at
www.tilak.at
Received on 2011/12/19 15:37

This archive was generated by hypermail 2.2.0 : 2011/12/19 15:45 CET