-
Notifications
You must be signed in to change notification settings - Fork 30
Change Port 9000 to XX
Philipp Dyhring edited this page May 24, 2020
·
4 revisions
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;