U
U
up72019-06-12 17:35:27
Java
up7, 2019-06-12 17:35:27

Is it possible to use nginx and some java server at the same time in Ubuntu server?

There is a server with a dedicated ip on Ubuntu 16.04. Nginx, php, mysql are deployed there - in general, a real site is working. Is it possible to add a Java or Node.js server to this server as well? In general, anyone else to take a domain and give it away with the help of this other server?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2019-06-12
@up7

Alternatively, you can make virtual hosts in nginx with the proxy_pass 127.0.0.1:8800/ directive; where the Java/nodejs application runs on port 8800. thus, addressing the standard ports 80 or 443 with the desired domain, you can get to the application that runs on port 8800. For different applications, you can make different subdomains or just a location like mydomain.com/app1 maydomain.com/app2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question