client) -> http://www.example.com -> (redirect) -> https://www.example.com
(client) -> http://www.example.com:8080 -> (redirect) ->
https://www.example.com:8080
Above Conditions will work for 80 port, for SSL It works on 443, but for
other port i.e 8080 The SSL cannot get access.
See My Configuration File I have Tried
### First Configuration###
frontend www-http
bind *:80
bind *:443 ssl crt /etc/apache2/ssl/apache.pem
reqadd X-Forwarded-Proto:\ https
default_backend tcp-backend
mode tcp
frontend www-http
bind *:80
bind *:443 ssl crt /etc/apache2/ssl/apache.pem
reqadd X-Forwarded-Proto:\ https
default_backend www-backend
mode tcp
backend tcp-backend
redirect scheme https if !{ ssl_fc }
server example 1.0.0.0:8080 check
backend www-backend
redirect scheme https if !{ ssl_fc }
server example.com 1.0.0.1:80 <http://1.0.0.1/> check
## Second Configuration ##
frontend www-http2
bind *:80
bind *:443 ssl crt /etc/apache2/ssl/apache.pem
reqadd X-Forwarded-Proto:\ https
default_backend tcp-backend
mode tcp
frontend tcp-http1
bind *:81
bind *:81 ssl crt /etc/apache2/ssl/apache.pem
reqadd X-Forwarded-Proto:\ https
default_backend www-backend
mode tcp
backend tcp-backend
redirect scheme https if !{ ssl_fc }
server example.com 1.0.0.0:8080 check
backend www-backend
redirect scheme https if !{ ssl_fc }
server example.com 1.0.0.1:80 <http://1.0.0.1/> check
#####################################################Please Help mi to
Confiuration Chnages if any have. Give some hints to do that one
Thanks and Regards
Parag