Pablo Torres Active Member Licensed User Longtime User Jan 7, 2021 #1 Hi, I have a server running CentOS 7 with Nginx and Java 8, I use it a lot to work with B4J Server jar's to interact with my apps, for example a build a server app called ReceiveData that listen to internal port 17181, if the correct address used to be http://xxxxxxxxxxxxx:17181/Districronos? then I can configure in Nginx: location /Receive/ { proxy_pass http://127.0.0.1:17181/Districronos?; } That way, I just have to send a post to http://xxxxxxxx/Receive in order to make it work together. It works perfect Now I'm trying to use all the same with a site developed with ABMaterial, the port is 17185 and the name of the site is SportsTicket If I go to http://xxxxxxxx:17185/SportsTicket then it´s working perfect, but I want to configure it in Nginx to work the same at http://xxxxxxxxxx/SportsTicket Can anyone help me to do that? Many Thanks
Hi, I have a server running CentOS 7 with Nginx and Java 8, I use it a lot to work with B4J Server jar's to interact with my apps, for example a build a server app called ReceiveData that listen to internal port 17181, if the correct address used to be http://xxxxxxxxxxxxx:17181/Districronos? then I can configure in Nginx: location /Receive/ { proxy_pass http://127.0.0.1:17181/Districronos?; } That way, I just have to send a post to http://xxxxxxxx/Receive in order to make it work together. It works perfect Now I'm trying to use all the same with a site developed with ABMaterial, the port is 17185 and the name of the site is SportsTicket If I go to http://xxxxxxxx:17185/SportsTicket then it´s working perfect, but I want to configure it in Nginx to work the same at http://xxxxxxxxxx/SportsTicket Can anyone help me to do that? Many Thanks
cklester Well-Known Member Licensed User Jan 8, 2021 #2 Pablo Torres said: ...I want to configure it in Nginx to work the same at http://xxxxxxxxxx/SportsTicket Click to expand... You should be able to do the same as you did for /Receive/. Have you tried this? Code: Copy location /SportsTicket/ { proxy_pass http://127.0.0.1:17185/SportsTicket?; } Upvote 0
Pablo Torres said: ...I want to configure it in Nginx to work the same at http://xxxxxxxxxx/SportsTicket Click to expand... You should be able to do the same as you did for /Receive/. Have you tried this? Code: Copy location /SportsTicket/ { proxy_pass http://127.0.0.1:17185/SportsTicket?; }
cklester Well-Known Member Licensed User Jan 8, 2021 #3 If ABMaterial uses websockets, you will need additional proxy header directives. Here's a good article with more info. Upvote 0
If ABMaterial uses websockets, you will need additional proxy header directives. Here's a good article with more info.
DonManfred Expert Licensed User Longtime User Jan 8, 2021 #4 Have you tried to confige it the same as you did with Receive? B4X: Copy location /Receive/ { proxy_pass http://127.0.0.1:17181/Districronos?; } location /SportsTicket/ { proxy_pass http://127.0.0.1:17185/SportsTicket?; } Upvote 0
Have you tried to confige it the same as you did with Receive? B4X: Copy location /Receive/ { proxy_pass http://127.0.0.1:17181/Districronos?; } location /SportsTicket/ { proxy_pass http://127.0.0.1:17185/SportsTicket?; }
Pablo Torres Active Member Licensed User Longtime User Jan 8, 2021 #5 cklester said: You should be able to do the same as you did for /Receive/. Have you tried this? Code: Copy location /SportsTicket/ { proxy_pass http://127.0.0.1:17185/SportsTicket?; } Click to expand... Of course I tried that before even writing here, it doesn't work. I tried again after your answer, just in case, not working, I'm sure Upvote 0
cklester said: You should be able to do the same as you did for /Receive/. Have you tried this? Code: Copy location /SportsTicket/ { proxy_pass http://127.0.0.1:17185/SportsTicket?; } Click to expand... Of course I tried that before even writing here, it doesn't work. I tried again after your answer, just in case, not working, I'm sure
Pablo Torres Active Member Licensed User Longtime User Jan 8, 2021 #6 cklester said: If ABMaterial uses websockets, you will need additional proxy header directives. Here's a good article with more info. Click to expand... What you mean ABMaterial uses websocket? Is there any other way to use it without it? I don´t understand Upvote 0
cklester said: If ABMaterial uses websockets, you will need additional proxy header directives. Here's a good article with more info. Click to expand... What you mean ABMaterial uses websocket? Is there any other way to use it without it? I don´t understand
Pablo Torres Active Member Licensed User Longtime User Jan 8, 2021 #7 DonManfred said: Have you tried to confige it the same as you did with Receive? B4X: Copy location /Receive/ { proxy_pass http://127.0.0.1:17181/Districronos?; } location /SportsTicket/ { proxy_pass http://127.0.0.1:17185/SportsTicket?; } Click to expand... Thank you Don for your answer, already tried that but doesn't work, any other idea? Upvote 0
DonManfred said: Have you tried to confige it the same as you did with Receive? B4X: Copy location /Receive/ { proxy_pass http://127.0.0.1:17181/Districronos?; } location /SportsTicket/ { proxy_pass http://127.0.0.1:17185/SportsTicket?; } Click to expand... Thank you Don for your answer, already tried that but doesn't work, any other idea?