Quantcast
Viewing all articles
Browse latest Browse all 4736

Redirect scheme https unless ssl_fc || map -m found

@loxybjorn wrote:

Hi,

I’d like to redirect to https unless it’s already https or if the Host header is present in a map file and imagine that this would work (this is in the frontend):

redirect scheme https code 302 unless { ssl_fc || hdr(Host),map(no_tls.map) -m found }

…but it doesn’t. Can anyone tell me if it’s possible and if so how to do it?

I’ve also tried the following, but that doesn’t work either:

redirect scheme https code 302 unless { ssl_fc || hdr_dom(Host) foo.bar.org }

I’m using v1.8.14.

Thanks in advance,
Björn

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4736

Trending Articles



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