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=d56fa1d3b5272aa70b3d9d9bf1a22a6598c5c8e6;p=evergreen%2Fpines.git adding rewrite rules for gapines.org --- 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 # ----------------------------------------------------------------------------------