From: Bill Erickson Date: Thu, 2 Aug 2018 18:45:39 +0000 (-0400) Subject: LP#1775466 Copy ang6 apache configs to 2.2 sample file X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b6861c03e5a4ab6e52b98df33fb53e94f39efb24;p=working%2FEvergreen.git LP#1775466 Copy ang6 apache configs to 2.2 sample file Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/examples/apache/eg_vhost.conf.in b/Open-ILS/examples/apache/eg_vhost.conf.in index 0c0361ed6c..2720867382 100644 --- a/Open-ILS/examples/apache/eg_vhost.conf.in +++ b/Open-ILS/examples/apache/eg_vhost.conf.in @@ -828,8 +828,32 @@ RewriteRule ^/openurl$ ${openurl:%1} [NE,PT] #RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [NE,R,L] - - FallbackResource /eg2/index.html +# ------------------------------------------------------------------------ +# /eg2/ client setup and locale configuration. +# +# If a valid locale cookie is present that does not match the current +# path, redirect to the requested locale path. +# Otherwise, if no locale is active, redirect to the default locale. + +# fr-CA +#RewriteCond %{REQUEST_URI} ^/eg2/ +#RewriteCond %{REQUEST_URI} !^/eg2/fr-CA/ +#RewriteCond %{HTTP_COOKIE} eg_locale=fr_ca +#RewriteRule ^/eg2/(.*) https://%{HTTP_HOST}/eg2/fr-CA/$1 [R=307,L] + +# Default / en-US. +# No alternate supported cookie provided. +#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] + +# en-US build +# This is the only required configuration when only using the default locale. + + FallbackResource /eg2/en-US/index.html - +# fr-CA build +# +# FallbackResource /eg2/fr-CA/index.html +#