Skip to content

Commit 5317e9c

Browse files
committed
fixes
1 parent 0ad9ab5 commit 5317e9c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bota/src/bota/apache_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11

22
import re
33
def clean_conf(apache_conf, root_path):
4+
apache_conf = re.sub(r'\n\s.*ProxyPass\s+' + re.escape(root_path) + r'\s+.*\n', '\n', apache_conf)
45
apache_conf = re.sub(r'ProxyPass\s+' + re.escape(root_path) + r'\s+.*\n', '', apache_conf)
6+
apache_conf = re.sub(r'\n\s.*ProxyPassReverse\s+' + re.escape(root_path) + r'\s+.*\n', '\n', apache_conf)
57
apache_conf = re.sub(r'ProxyPassReverse\s+' + re.escape(root_path) + r'\s+.*\n', '', apache_conf)
68
# return apache_conf
79
return re.sub(r'[ \t]+</VirtualHost>', '</VirtualHost>', apache_conf)

0 commit comments

Comments
 (0)