Change Port 9000 to XX - didiatworkz/screenly-ose-monitoring GitHub Wiki

Sometimes you want to reach the server directly without using port 9000. You only have to edit the monitoring.conf of the nginx.

Step 1: Goto /etc/nginx/sites-enabled/monitoring.conf

Step 2: Replace the config with:

server {

  # listen 80 default_server;
  # listen 9000;
  listen 1111;
  server_name _;
  client_max_body_size	20M;

  root /var/www/html/monitor/;
  index index.php;
  add_header 'Access-Control-Allow-Origin' '*';

  location ~ \.php$ {
    include /etc/nginx/fastcgi.conf;
    fastcgi_pass unix:/run/php/php7.3-fpm.sock;
  }
}


Step 3: Edit the Portnumber by listen XXXX;