Welcome! Log In Create A New Profile

Advanced

Setting NGINX for two website

Posted by Xenoriss 
Setting NGINX for two website
December 03, 2017 08:23PM
Hello,
Hi, I have a problem. I need to configure nginx including 3 websites. 2 of these websites, do not have context root and I can not add it for various reasons. How can I solve?

server {
listen 8080;
location /{
proxy_pass http://localhost:8080;
}

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

location /users/{
proxy_pass http://localhost:8080/users/;
}
}

if I put a location, I have trouble getting the correct site. thank you very much for helping
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 322
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