Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4746

Problem on URL redirection

$
0
0

@hadi wrote:

Hello everyone,

I want to redirect following domains but I am getting security alert on it the HTTPS one.

cc.com ---->  cc.com//connections?currency=EUR                      [WORKS]
http://cc.com ----> http://cc.com//connections?currency=EUR     [WORKS]
https://cc.com ----> https://cc.com//connections?currency=EUR      [WORKS, but with security warning]
http://www.cc.com --> http://www.cc.com//connections?currency=EUR     [WORKS]
https://www.cc.com --> https://www.cc.com//connections?currency=EUR  [WORKS, but with security warning]

My config is as follows.

# CC Redirect
acl host_cc hdr(host) -i cc.com
acl host_cc hdr_beg(host) -i www.
reqirep ^Host:\ www.(.*)$ Host:\ \1 if host_ff
http-request redirect code 301 location https://www.cc.com//connections?currency=EUR if host_cc

Can you please help me with the config and tell me how can I fix this security warning alerts?
Thank you

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4746

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>