Welcome! Log In Create A New Profile

Advanced

RServe connection

Posted by agonzalezSP 
RServe connection
September 19, 2017 11:58AM
I have my Rserve server connected and trying to connect it via API (node js) to redistribute connections as a load balancer with nginx. The issue is that I am able to redirect the node port, but not the load balancer with Rserve. Below you can see the codes...

Many thanks!

Rserve.conf

remote enable port 1234

Nginx.conf

#user nginx;
worker_processes 5;

events {
worker_connections 1024; ## Default: 1024
use epoll;
multi_accept on;
}

http {
include mime.types;
index index.html index.htm index.php;

default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] $status '
'"$request" $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';

sendfile on;
tcp_nopush on;
server_names_hash_bucket_size 128;

upstream Rserve {
server http://xx.xxx.xxx.xxx:1234;
server http://xx.xxx.xxx.xxx:1235;
}

server {
listen 6870;

location / {
proxy_pass http://Rserve;
}
}
server {
listen 6070;

location / {
proxy_pass http://xx.xxx.xxx.xxx:6060;
proxy_redirect http://xx.xxx.xxx.xxx:6060;
$scheme://$host/;
auth_basic "Username and Password are required";
auth_basic_user_file /etc/nginx/.htpasswd;
}
}


}
nginx version 1.8.1
Rserve_1.7-3
R version 3.4.1
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 317
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready