We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ad9ab5 commit 5317e9cCopy full SHA for 5317e9c
bota/src/bota/apache_utils.py
@@ -1,7 +1,9 @@
1
2
import re
3
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)
5
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)
7
apache_conf = re.sub(r'ProxyPassReverse\s+' + re.escape(root_path) + r'\s+.*\n', '', apache_conf)
8
# return apache_conf
9
return re.sub(r'[ \t]+</VirtualHost>', '</VirtualHost>', apache_conf)
0 commit comments