Search code examples
opencpurapache

OpenCPU: how to change the default port?


Is there a way to have OpenCPU listening on a port different from :80?

It should be easy using Docker, but I'm running a dedicated Ubuntu machine as recommended here.

ps. I'm only using opencpu-server without opencpu-cache and so without nginx.


Solution

  • It already runs on an additional port 8004 by default. You should be able to changed that in your /etc/apache2/sites-available/opencpu.conf file.