adding rewrite rules for gapines.org
authorChris Sharp <csharp@georgialibraries.org>
Sat, 30 Mar 2013 12:46:54 +0000 (08:46 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 22 Apr 2013 18:57:19 +0000 (14:57 -0400)
Open-ILS/examples/apache/eg_vhost.conf

index e40ebc5..770e0e0 100644 (file)
@@ -67,6 +67,19 @@ OSRFGatewayConfig /openils/conf/opensrf_core.xml
     Allow from All
 </Location>
 
+
+# ----------------------------------------------------------------------------------
+# Rewrite Rules
+# ----------------------------------------------------------------------------------
+#if domain being accessed is not gapines.org
+RewriteCond %{HTTP_HOST} !^gapines\.org [NC]
+##and the request is not coming from the lvs machines
+RewriteCond %{REMOTE_HOST} !^10.10.10.[123]
+##and the request is not directed at localhost
+RewriteCond %{HTTP_HOST} !^127.0.0.1
+#change the domain name to gapines.org
+RewriteRule ^/(.*) http://gapines.org/$1 [L,R]
+
 # ----------------------------------------------------------------------------------
 # Replace broken cover images with a transparent GIF by default
 # ----------------------------------------------------------------------------------