From: Dan Scott Date: Mon, 30 May 2011 02:59:59 +0000 (-0400) Subject: Set up Apache hosts for memcached, JS, CSS, and SSL X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9aa3b219e7781776be41a22cdc4296830df59f1b;p=contrib%2FConifer.git Set up Apache hosts for memcached, JS, CSS, and SSL We're using JS/CSS hosts to increase parallelism of browser fetches as well as going with secure-by-default settings for users. Also point at our memcached server. Signed-off-by: Dan Scott --- diff --git a/Open-ILS/examples/apache/eg_vhost.conf b/Open-ILS/examples/apache/eg_vhost.conf index e8c6fd8b88..90758900f8 100644 --- a/Open-ILS/examples/apache/eg_vhost.conf +++ b/Open-ILS/examples/apache/eg_vhost.conf @@ -36,6 +36,7 @@ RedirectMatch 301 ^/opac/extras/slimpac/advanced.html$ /opac/en-US/extras/slimpa OSRFGatewayConfig /openils/conf/opensrf_core.xml # Translator memcache server. Default is localhost # OSRFTranslatorCacheServer 127.0.0.1:11211 +OSRFTranslatorCacheServer 131.104.100.166:11211 # ---------------------------------------------------------------------------------- @@ -93,12 +94,15 @@ RewriteRule . - [E=locale:%1] # Specify the hostname (without protocol) and path to the images. Protocol will # be determined at runtime #SetEnvIf Request_URI ".*" OILS_OPAC_IMAGES_HOST=static.example.org/opac/ + SetEnvIf Request_URI ".*" OILS_OPAC_IMAGES_HOST=images.concat.ca/opac/ # In addition to loading images from a static host, you can also load CSS and/or # Javascript from a static host or hosts. Protocol will be determined at runtime # and/or by configuration options immediately following. #SetEnvIf Request_URI ".*" OILS_OPAC_CSS_HOST=static.example.org/opac/ #SetEnvIf Request_URI ".*" OILS_OPAC_JS_HOST=static.example.org/opac/ + SetEnvIf Request_URI ".*" OILS_OPAC_CSS_HOST=css.concat.ca/opac/ + SetEnvIf Request_URI ".*" OILS_OPAC_JS_HOST=js.concat.ca/opac/ # If you are not able to serve static content via https and # wish to force http:// (and are comfortable with mixed-content @@ -109,6 +113,7 @@ RewriteRule . - [E=locale:%1] # https pages, avoiding mixed-content warnings in client browsers # and are willing to accept some increased server load, set this: #SetEnvIf Request_URI ".*" OILS_OPAC_BYPASS_STATIC_FOR_HTTPS=yes + SetEnvIf Request_URI ".*" OILS_OPAC_BYPASS_STATIC_FOR_HTTPS=yes # Specify a ChiliFresh account to integrate their services with the OPAC #SetEnv OILS_CHILIFRESH_ACCOUNT @@ -122,6 +127,7 @@ RewriteRule . - [E=locale:%1] # Uncomment to force SSL any time a patron is logged in. This protects # authentication tokens. Left commented out for backwards compat for now. #SetEnv OILS_OPAC_FORCE_LOGIN_SSL 1 + SetEnv OILS_OPAC_FORCE_LOGIN_SSL 1