Add apache config examples for AC by record id
authorJeff Godin <jgodin@tadl.org>
Thu, 26 Sep 2013 15:42:23 +0000 (11:42 -0400)
committerBen Shum <bshum@biblio.org>
Thu, 26 Sep 2013 17:56:22 +0000 (13:56 -0400)
Add apache (and apache 2.4) config examples for added content by
record id, update release notes to call out changes.

Signed-off-by: Jeff Godin <jgodin@tadl.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/examples/apache/eg.conf.in
Open-ILS/examples/apache/eg_vhost.conf.in
Open-ILS/examples/apache_24/eg.conf.in
Open-ILS/examples/apache_24/eg_vhost.conf.in
docs/RELEASE_NOTES_NEXT/OPAC/added_content_by_record_id.txt

index faa26a0..368b057 100644 (file)
@@ -110,6 +110,7 @@ NameVirtualHost *:443
        ServerName localhost:443
        ServerAlias 127.0.0.1:443
        SSLEngine on
+    SSLProxyEngine on # required for ErrorDocument 404 on SSL connections
        SSLHonorCipherOrder On
        SSLCipherSuite ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!EDH:!AESGCM
 
index 1000461..8835b7e 100644 (file)
@@ -74,6 +74,10 @@ RewriteEngine ON
 RewriteRule ^/opac/extras/ac/jacket/(small|medium|large)/$ \
     /opac/images/blank.png [P,L]
 
+<Location /opac/extras/ac/jacket>
+        ErrorDocument 404 /opac/images/blank.png
+</Location>
+
 # ----------------------------------------------------------------------------------
 # Add the row ID (RID) and date so we can make unAPI happy
 # ----------------------------------------------------------------------------------
index 67dfd53..b9c373c 100644 (file)
@@ -106,6 +106,7 @@ NameVirtualHost *:443
        ServerName localhost:443
        ServerAlias 127.0.0.1:443
        SSLEngine on
+    SSLProxyEngine on # required for ErrorDocument 404 on SSL connections
        SSLHonorCipherOrder On
        SSLCipherSuite ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!EDH:!AESGCM
 
index 2e51116..0d67b54 100644 (file)
@@ -74,6 +74,10 @@ RewriteEngine ON
 RewriteRule ^/opac/extras/ac/jacket/(small|medium|large)/$ \
     /opac/images/blank.png [P,L]
 
+<Location /opac/extras/ac/jacket>
+        ErrorDocument 404 /opac/images/blank.png
+</Location>
+
 # ----------------------------------------------------------------------------------
 # Add the row ID (RID) and date so we can make unAPI happy
 # ----------------------------------------------------------------------------------
index 19f7182..2c687f4 100644 (file)
@@ -28,3 +28,26 @@ Local Content Overrides
 Just as with ISBN lookups, there is support for local overrides in
 the form of a file created on disk which short-circuits any external
 Added Content lookup.
+
+
+Apache Configuration
+++++++++++++++++++++
+
+The example Apache configs have been updated to support serving
+blank.png when added content jacket URLs return a 404. This prevents
+"broken image" placeholders in browsers, without requiring a
+Javascript onerror handler on each img tag.
+
+The changes are as follows:
+
+In the eg.conf VirtualHost declaration for SSL, add:
+
+[source]
+SSLProxyEngine on # required for ErrorDocument 404 on SSL connections
+
+In the eg_vhost.conf file, add:
+
+[source]
+<Location /opac/extras/ac/jacket>
+        ErrorDocument 404 /opac/images/blank.png
+</Location>