2

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.

Maurizio
  • 547
  • 5
  • 13

1 Answers1

3

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.

Jeroen Ooms
  • 31,998
  • 35
  • 134
  • 207
  • And how can I disable port `80`? I don't want to close it because I am exposing other contents through it, but I don't want OpenCPU to be accessible from that port. – Maurizio Mar 21 '15 at 12:14
  • Within opencpu.conf move the `/ocpu` handler into the 8004 virtual host and restart apache – Jeroen Ooms Mar 22 '15 at 18:45