Add support for IP redirection in TPAC
authorAndy Witter <awitter@georgialibraries.org>
Mon, 13 Jan 2014 04:16:53 +0000 (23:16 -0500)
committerAndy Witter <awitter@georgialibraries.org>
Mon, 13 Jan 2014 04:16:53 +0000 (23:16 -0500)
templates/setup-head.sh

index 1dee5ca..ff5503a 100755 (executable)
@@ -296,6 +296,7 @@ if [ -e lib_ips.txt ]
        sed -i 's^#    PerlSendHeader On^    PerlSendHeader On^g' /etc/apache2/eg_vhost.conf
        sed -i 's^#    allow from all^    allow from all^g' /etc/apache2/eg_vhost.conf
        sed -i 's^#</LocationMatch>^</LocationMatch>^g' /etc/apache2/eg_vhost.conf
+       sed -i 's^#    #PerlSetVar OILSRedirectTpac "true"^    PerlSetVar OILSRedirectTpac "true"^g' /etc/apache2/eg_vhost.conf
 fi
 
 ### configure apache module for memcache01 IP