Ticket #43011: apache-cif.conf

File apache-cif.conf, 794 bytes (added by jul_bsd@…, 11 years ago)
Line 
1## from https://code.google.com/p/collective-intelligence-framework/wiki/ServerInstall
2# Make sure you
3#LoadModule apreq_module modules/mod_apreq2.so
4#LoadModule perl_module modules/mod_perl2.so
5# Load Apache2::REST
6#PerlModule Apache2::REST
7
8<Location /api>
9    SetHandler perl-script
10    PerlSetVar Apache2RESTHandlerRootClass "CIF::WebAPI::Plugin"
11    PerlSetVar Apache2RESTAPIBase "/api"
12    PerlResponseHandler Apache2::REST
13    PerlSetVar Apache2RESTWriterDefault 'json'
14    PerlSetVar Apache2RESTAppAuth 'CIF::WebAPI::AppAuth'
15
16    # feed defaults
17    PerlSetVar CIFLookupLimitDefault 500
18    PerlSetVar CIFDefaultFeedSeverity "high"
19
20    # extra outputs
21    PerlAddVar Apache2RESTWriterRegistry 'table'
22    PerlAddVar Apache2RESTWriterRegistry 'CIF::WebAPI::Writer::table'
23</Location>
24