Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

RServe connection

$
0
0
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

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>