Skip to content
Snippets Groups Projects

Update Apache configuration for OOD rewrite rules during deploy phase

1 file
+ 8
0
Compare changes
  • Side-by-side
  • Inline
@@ -6,3 +6,11 @@
@@ -6,3 +6,11 @@
owner: root
owner: root
group: root
group: root
dest: /var/www/rewrite_map_config.py
dest: /var/www/rewrite_map_config.py
 
 
- name: Replace OOD rewrite condition regex in Apache configuration
 
ansible.builtin.replace:
 
path: /etc/httpd/conf.d/front-end.conf
 
regexp: "RewriteCond %{HTTP:REMOTE_USER} '\\^\\(\\.\\+\\)\\$'"
 
replace: |
 
RewriteCond %{HTTP:REMOTE_USER} '([a-zA-Z0-9_.+-]+)@uab.edu$' [OR]
 
RewriteCond %{HTTP:REMOTE_USER} 'urn:mace:incommon:uab.edu!https://uabgrid.uab.edu/shibboleth!(.+)$'
Loading