haproxy RewriteRule.
This commit is contained in:
parent
e97acbeafb
commit
f8f2047872
4 changed files with 27 additions and 0 deletions
6
roles/haproxy/rewrite/tasks/main.yml
Normal file
6
roles/haproxy/rewrite/tasks/main.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
- template: src=rewrite.conf dest=/etc/httpd.conf.d/{{website}}/haproxy.conf
|
||||
notify:
|
||||
- restart httpd
|
||||
tags:
|
||||
- haproxy
|
||||
- haproxy/rewrite
|
2
roles/haproxy/rewrite/templates/rewrite.conf
Normal file
2
roles/haproxy/rewrite/templates/rewrite.conf
Normal file
|
@ -0,0 +1,2 @@
|
|||
RewriteEngine On
|
||||
RewriteRule ^{{path}}/(proxy\d+)((?:;.*)?) http://$1:8080/$2 [P,L]
|
Loading…
Add table
Add a link
Reference in a new issue