Change redirect type in ood-portal.conf

Hi All,
What is the best way to change the redirect type of the RewriteRule directive inside /opt/rh/httpd24/root/etc/httpd/conf.d/ood-portal.conf?

Example:

<VirtualHost *:80>
  RewriteEngine On
  RewriteRule ^(.*) https://ood-server:443$1 [R=301,NE,L]
</VirtualHost>
[...]
<VirtualHost *:443>
  [...]
  RewriteRule ^(.*) https://ood-server:443$1 [*R=301*,NE,L]
  [...]
</VirtualHost>

to

 <VirtualHost *:80>
   RewriteEngine On
   RewriteRule ^(.*) https://ood-server:443$1 [R=307,NE,L]
 </VirtualHost>
[...]
<VirtualHost *:443>
  [...]
  RewriteRule ^(.*) https://ood-server:443$1 [*R=307*,NE,L]
  [...]
</VirtualHost>

Is there a template that gets read by the /opt/ood/ood-portal-generator/sbin/update_ood_portal script? Or is there a way to specify the redirect type inside /etc/ood/config/ood_portal.yml?
Thanks

I see there is a template in /opt/ood/ood-portal-generator/templates/ood-portal.conf.erb.
I assume it is safe to manually change the redirect type there from 301 to 307.

Hey! Sorry for the delay. Yes that is where the template originates. You can back it up and modify it there, though it will get overwritten during RPM install so beware when you upgrade.

Can you let us know why you prefer 307 instead of 301? We may be able to just provide the configuration in a later release if it’s popular/useful enough.

Thanks Jeff. Sure, we use 307 because we have some load balancers in place and don’t want the redirect to be cached. That’s why 307 (temporary redirect) fits us better.