Bug fix : redirect https with many names

On a multiple name vhost with redirect_https, redirection is done with
the origin name not the main name.
This commit is contained in:
Emilien Mantel
2017-04-13 14:21:14 +02:00
parent fcb59fd331
commit f1af8991fd
2 changed files with 25 additions and 7 deletions

View File

@@ -212,6 +212,13 @@
template: '_base'
ssl_name: 'test-ssl.local'
redirect_https: true
- name:
- 'test-ssl-redirect-many.local'
- 'test-ssl-redirect-many2.local'
proto: ['https']
template: '_base'
ssl_name: 'test-ssl.local'
redirect_https: true
- name: 'test-ssl-proxy-protocol.local'
proto: ['http', 'https']
listen: [80, 20080]
@@ -382,6 +389,8 @@
sslredirok.stderr.find('https://{{ item }}/') == -1
with_items:
- 'test-ssl-redirect.local'
- 'test-ssl-redirect-many.local'
- 'test-ssl-redirect-many2.local'
# --------------------------------
# Default vhosts