From f93df93e28f111ead7e3109e78b3761e015d08b4 Mon Sep 17 00:00:00 2001 From: Jeff Godin Date: Wed, 10 Apr 2013 14:15:29 -0700 Subject: [PATCH] Begin Apache config for RESTful API Begin Apache config for experimental RESTful API. The Perl handler mentioned here does not exist yet. Signed-off-by: Jeff Godin --- Open-ILS/examples/apache/eg_vhost.conf.in | 12 +++++++++++- Open-ILS/examples/apache_24/eg_vhost.conf | 11 +++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/Open-ILS/examples/apache/eg_vhost.conf.in b/Open-ILS/examples/apache/eg_vhost.conf.in index 60605b3c93..93fd9d3220 100644 --- a/Open-ILS/examples/apache/eg_vhost.conf.in +++ b/Open-ILS/examples/apache/eg_vhost.conf.in @@ -559,6 +559,17 @@ RewriteRule .? - [E=locale:%{HTTP:Accept-Language}] # ---------------------------------------------------------------------------------- +# Experimental RESTful API endpoint +# ---------------------------------------------------------------------------------- + + SetHAndler perl-script + PerlHandler OpenILS::WWW::RestAPI + Options +ExecCGI + PerlSendHeader On + allow from all + + +# ---------------------------------------------------------------------------------- # Conify - next-generation Evergreen administration interface # ---------------------------------------------------------------------------------- RewriteRule ^/conify/([a-z]{2}-[A-Z]{2})/global/(.*)$ /conify/global/$2 [E=locale:$1,L] @@ -695,7 +706,6 @@ RewriteRule ^/openurl$ ${openurl:%1} [NE,PT] ExpiresActive On ExpiresByType text/html "access plus 5 seconds" - # Note: the template processor will decline handling anything it does not # have an explicit configuration for, which means it will fall back to # Apache to serve the file. However, in the interest of speed, go ahead diff --git a/Open-ILS/examples/apache_24/eg_vhost.conf b/Open-ILS/examples/apache_24/eg_vhost.conf index a5e3fcf89c..beac25c59b 100644 --- a/Open-ILS/examples/apache_24/eg_vhost.conf +++ b/Open-ILS/examples/apache_24/eg_vhost.conf @@ -520,6 +520,17 @@ RewriteRule .? - [E=locale:%{HTTP:Accept-Language}] # ---------------------------------------------------------------------------------- +# Experimental RESTful API endpoint +# ---------------------------------------------------------------------------------- + + SetHAndler perl-script + PerlHandler OpenILS::WWW::RestAPI + Options +ExecCGI + PerlSendHeader On + Require all granted + + +# ---------------------------------------------------------------------------------- # Conify - next-generation Evergreen administration interface # ---------------------------------------------------------------------------------- RewriteRule ^/conify/([a-z]{2}-[A-Z]{2})/global/(.*)$ /conify/global/$2 [E=locale:$1,L] -- 2.11.0