From d56fa1d3b5272aa70b3d9d9bf1a22a6598c5c8e6 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.in | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Open-ILS/examples/apache/eg_vhost.conf.in b/Open-ILS/examples/apache/eg_vhost.conf.in index 60605b3c93..1858078eb0 100644 --- a/Open-ILS/examples/apache/eg_vhost.conf.in +++ b/Open-ILS/examples/apache/eg_vhost.conf.in @@ -67,6 +67,19 @@ OSRFGatewayConfig @sysconfdir@/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