From c37f7ba9e3cfbf7ff0feeb9c77710d706d63697d Mon Sep 17 00:00:00 2001
From: Galen Charlton <gmc@equinoxinitiative.org>
Date: Thu, 6 Sep 2018 16:26:45 -0400
Subject: [PATCH] LP#1775466: improve release notes for the Angular6 app

More needs to be added to eg_vhost.conf when upgrading an
existing installation.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
---
 docs/RELEASE_NOTES_NEXT/Architecture/angular6-app.adoc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/docs/RELEASE_NOTES_NEXT/Architecture/angular6-app.adoc b/docs/RELEASE_NOTES_NEXT/Architecture/angular6-app.adoc
index a15583bb70..80359f3f52 100644
--- a/docs/RELEASE_NOTES_NEXT/Architecture/angular6-app.adoc
+++ b/docs/RELEASE_NOTES_NEXT/Architecture/angular6-app.adoc
@@ -42,6 +42,10 @@ Add the following stanza to /etc/apache2/eg_vhost.conf.
 
 [source,conf]
 --------------------------------------------------------------------------
+RewriteCond %{REQUEST_URI}  ^/eg2/
+RewriteCond %{REQUEST_URI}  !^/eg2/([a-z]{2}-[A-Z]{2})/
+RewriteRule ^/eg2/(.*) https://%{HTTP_HOST}/eg2/en-US/$1 [R=307,L]
+
 <Directory "/openils/var/web/eg2/en-US">                                       
     FallbackResource /eg2/en-US/index.html                                     
 </Directory>  
-- 
2.11.0