S
S
Sarkis Arutiunian2015-12-26 11:57:29
Nginx
Sarkis Arutiunian, 2015-12-26 11:57:29

How to set up nginx on multiple ports?

There is a server on Debian, it has plesk12 (apache + nginx), which took over port 80 and all sites loaded through splash work fine.
You need to deploy an application written in meteor to the same server, that is, you cannot install it through the splash, and if you deploy separately, you have to set a different port, in my case 8080. did he forward the domain to port 8080? I guess what can be done through reverse proxy, but not when I didn’t do it, so I would like to hear the opinion of people with experience.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Leonovich, 2015-12-26
@sarkis-tlt

Something like this:

server { 
    listen       80;
    server_name  example.com;

    location / {
        proxy_pass http://127.0.0.1:8080;
    }
  }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question