From: Chris Sharp Date: Sat, 30 Mar 2013 12:46:54 +0000 (-0400) Subject: adding rewrite rules for gapines.org X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b67727db15b1a8e4f9166902447629da9e4ada4a;p=evergreen%2Fpines.git adding rewrite rules for gapines.org --- 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 # ----------------------------------------------------------------------------------