From b67727db15b1a8e4f9166902447629da9e4ada4a Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Sat, 30 Mar 2013 08:46:54 -0400 Subject: [PATCH] adding rewrite rules for gapines.org --- Open-ILS/examples/apache/eg_vhost.conf | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Open-ILS/examples/apache/eg_vhost.conf b/Open-ILS/examples/apache/eg_vhost.conf index e40ebc535d..770e0e035b 100644 --- a/Open-ILS/examples/apache/eg_vhost.conf +++ b/Open-ILS/examples/apache/eg_vhost.conf @@ -67,6 +67,19 @@ OSRFGatewayConfig /openils/conf/opensrf_core.xml Allow from All + +# ---------------------------------------------------------------------------------- +# 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 # ---------------------------------------------------------------------------------- -- 2.11.0