jeffreyhorner / rapache

R embedded inside Apache
http://www.rapache.net/
Apache License 2.0
137 stars 32 forks source link

Rsource and RreqHandler not supported? #53

Open rolfmblindgren opened 4 years ago

rolfmblindgren commented 4 years ago

As from http://biostat.mc.vanderbilt.edu/wiki/pub/Main/RApacheProject/presentation.pdf,

This config file should work,

        <Location />
                  SetHandler r-handler
                  Rsource /home/vds/www/api.grendel.no/R/api.R
                  RreqHandler handler
        </Location>

but apachectl says

Invalid command 'Rsource', perhaps misspelled or defined by a module not included in the server configuration

Same for RreqHandler

Using RFileHandler instead works.

jeroen commented 4 years ago

I think it is case sensitive, did you try RSource? Here is the opencpu config if that helps:

https://github.com/opencpu/opencpu-server/blob/master/opencpu-server/sites-available/opencpu.conf