Add library-specific entries to Apache eg_vhost.conf feature/apache-lib-entries
authorDan Scott <dan@coffeecode.net>
Mon, 30 May 2011 02:51:35 +0000 (22:51 -0400)
committerDan Scott <dan@coffeecode.net>
Mon, 30 May 2011 02:51:35 +0000 (22:51 -0400)
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/examples/apache/eg_vhost.conf

index e8c6fd8..c83b62d 100644 (file)
@@ -56,6 +56,116 @@ RewriteEngine ON
 RewriteRule ^/opac/extras/ac/jacket/(small|medium|large)/$ \
     /opac/images/blank.png [P,L]
 
+# Catch changes due to organizational hierarchy
+RewriteCond %{QUERY_STRING} ^(.*?)(^l|&l)=(105|114)&d=2(\D.*)?$
+RewriteRule ^(.*)$ $1?%1%2=%3%4 [redirect=permanent,last,noescape]
+
+#RewriteCond %{QUERY_STRING} ^l=105&d=2$
+#RewriteRule - /opac/%1/skin/lul/xml/index.xml?l=105 [R=permanent] 
+
+# ----------------------------------------------------------------------------------
+# Wildcard cert means that concat.ca _isn't_ valid, but anything else is
+# Redirect to www.concat.ca
+# ----------------------------------------------------------------------------------
+RewriteCond %{HTTP_HOST} ^concat\.ca
+RewriteRule ^(.*)$ http://www.concat.ca/$1 [R=permanent,L] 
+
+# ----------------------------------------------------------------------------------
+# Algoma skin
+# ----------------------------------------------------------------------------------
+RewriteCond %{HTTP_HOST} ^algoma.concat\.ca
+RewriteRule ^/?$ http://algoma.concat.ca/opac/en-CA/skin/algoma/xml/index.xml?l=111 [R=permanent,L] 
+
+# ----------------------------------------------------------------------------------
+# LU English School of Education skin
+# ----------------------------------------------------------------------------------
+RewriteCond %{HTTP_HOST} ^crc.concat\.ca
+RewriteRule ^/?$ http://crc.concat.ca/opac/en-CA/skin/default/xml/index.xml?l=130 [R=permanent,L] 
+
+# ----------------------------------------------------------------------------------
+# Sudbury Regional Hospital skin
+# ----------------------------------------------------------------------------------
+RewriteCond %{HTTP_HOST} ^hrsrh.concat\.ca
+RewriteRule ^/?$ http://hrsrh.concat.ca/opac/en-CA/skin/hrsrh/xml/index.xml?sg=1 [R=permanent,L] 
+
+# ----------------------------------------------------------------------------------
+# LU French School of Education skin
+# ----------------------------------------------------------------------------------
+RewriteCond %{HTTP_HOST} ^ldcr.concat\.ca
+RewriteRule ^/?$ http://ldcr.concat.ca/opac/en-CA/skin/default/xml/index.xml?l=132 [R=permanent,L] 
+
+# ----------------------------------------------------------------------------------
+# Huntington College skin
+# ----------------------------------------------------------------------------------
+RewriteCond %{HTTP_HOST} ^huntington.concat\.ca
+RewriteRule ^/?$ http://huntington.concat.ca/opac/en-CA/skin/default/xml/index.xml?l=104 [R=permanent,L] 
+
+# ----------------------------------------------------------------------------------
+# Laurentian skin
+# ----------------------------------------------------------------------------------
+RewriteCond %{HTTP_HOST} ^laurentian.concat\.ca
+RewriteRule ^/?$ http://laurentian.concat.ca/opac/en-CA/skin/lul/xml/index.xml?l=105 [R=permanent,L] 
+
+# ----------------------------------------------------------------------------------
+# Laurentienne skin
+# ----------------------------------------------------------------------------------
+RewriteCond %{HTTP_HOST} ^laurentienne.concat\.ca
+RewriteRule ^/?$ http://laurentienne.concat.ca/opac/fr-CA/skin/lul/xml/index.xml?l=105 [R=permanent,L] 
+
+# ----------------------------------------------------------------------------------
+# Music Resource Centre skin
+# ----------------------------------------------------------------------------------
+RewriteCond %{HTTP_HOST} ^mrc.concat\.ca
+RewriteRule ^/?$ http://mrc.concat.ca/opac/en-CA/skin/lul/xml/index.xml?l=131 [R=permanent,L] 
+
+# ----------------------------------------------------------------------------------
+# NOSM skin
+# ----------------------------------------------------------------------------------
+RewriteCond %{HTTP_HOST} ^nosm.concat\.ca
+RewriteRule ^/?$ http://nosm.concat.ca/opac/en-CA/skin/nosm/xml/index.xml?l=125 [R=permanent,L] 
+
+# ----------------------------------------------------------------------------------
+# SAH skin
+# ----------------------------------------------------------------------------------
+RewriteCond %{HTTP_HOST} ^sah.concat\.ca
+RewriteRule ^/?$ http://sah.concat.ca/opac/en-CA/skin/default/xml/index.xml?sg=1 [R=permanent,L] 
+
+# ----------------------------------------------------------------------------------
+# SJCG skin
+# ----------------------------------------------------------------------------------
+RewriteCond %{HTTP_HOST} ^sjcg.concat\.ca
+RewriteRule ^/?$ http://sjcg.concat.ca/opac/en-CA/skin/sjcg/xml/index.xml?l=133 [R=permanent,L] 
+
+# ----------------------------------------------------------------------------------
+# Université de Hearst skin
+# ----------------------------------------------------------------------------------
+RewriteCond %{HTTP_HOST} ^uhearst.concat\.ca
+RewriteRule ^/?$ http://uhearst.concat.ca/opac/fr-CA/skin/uhearst/xml/index.xml?l=114 [R=permanent,L] 
+
+# ----------------------------------------------------------------------------------
+# Université of Sudbury skin
+# ----------------------------------------------------------------------------------
+RewriteCond %{HTTP_HOST} ^usudbury.concat\.ca
+RewriteRule ^/?$ http://usudbury.concat.ca/opac/en-CA/skin/default/xml/index.xml?l=107 [R=permanent,L] 
+
+# ----------------------------------------------------------------------------------
+# Vale Inco skin
+# ----------------------------------------------------------------------------------
+RewriteCond %{HTTP_HOST} ^vale.concat\.ca
+RewriteRule ^/?$ http://vale.concat.ca/opac/en-CA/skin/default/xml/index.xml?l=120 [R=permanent,L] 
+
+# ----------------------------------------------------------------------------------
+# XStrata skin
+# ----------------------------------------------------------------------------------
+RewriteCond %{HTTP_HOST} ^xstrata.concat\.ca
+RewriteRule ^/?$ http://xstrata.concat.ca/opac/en-CA/skin/default/xml/index.xml?l=119 [R=permanent,L] 
+
+# ----------------------------------------------------------------------------------
+# Windsor skin
+# ----------------------------------------------------------------------------------
+RewriteCond %{HTTP_HOST} ^windsor.concat\.ca
+RewriteRule ^/?$ http://windsor.concat.ca/opac/en-CA/skin/uwin/xml/index.xml?l=106 [R=permanent,L] 
+
 # ----------------------------------------------------------------------------------
 # Add the row ID (RID) and date so we can make unAPI happy
 # ----------------------------------------------------------------------------------