You are not logged in.
Pages: 1
Hi,
I want to host 2 services, a mORMOT server and a blog in Java on my rapsberry pi 2 server. (Yes, the REST Server works! Awesome!)
To do this, i use nginx to redirect request:
http://localhost/ => redirect to localhost:9000 (java app)
http://localhost/app => redirect to localhost:8080 mormot REST Server
So i set up nginx to redirect request with proxy_pass (see config below). The redirection works when i access with my browser to http://localhost:8080/root/index, i see my page. But when I access to http://localhost/root/index, it takes 5 second to show the page. It seems, that it's Nginx which take time to redirect the url. Here the nginx config I use.
Does someone know how to redirect mormot url with nginx?
Thanks.
worker_processes 4;
events {
multi_accept on;
worker_connections 5120;
use epoll;
}
http {
charset utf-8;
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_buffering off;
}
}
}
Offline
With apache there is no such a time lag, but there is also a reverse-proxy line.
I can only say it is not a mORMot problem, but I don't know how to configure ngnix.
Offline
Hi sushi ,
I try nginx in win7 had some delay problem when TSQLHttpServerOptions set useHttpSocket or useBidirSocket ,
but set useHttpApi or useHttpApiRegisteringURI is ok.
Offline
Pages: 1